Fix scroll after modal close (#1798)
This commit is contained in:
		
							parent
							
								
									3fc1291600
								
							
						
					
					
						commit
						34175babb2
					
				@ -109,6 +109,7 @@ export default function useModal () {
 | 
			
		||||
 | 
			
		||||
  const showModal = useCallback(
 | 
			
		||||
    (getContent, options) => {
 | 
			
		||||
      document.activeElement?.blur()
 | 
			
		||||
      const ref = { node: getContent(onClose, setOptions), options }
 | 
			
		||||
      if (options?.replaceModal) {
 | 
			
		||||
        modalStack.current = [ref]
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user