You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Может надо добавить условие, проверяющее находится ли элемент в DOM-дереве, перед тем как вызывать функцию setState.
constonBlur=useCallback((event: FocusEvent<HTMLElement>)=>{event.stopPropagation();if(ref.current){// добавлено условие проверки на существование элемента в DOM-деревеsetIsFocused(false);}},[setIsFocused,ref]);
SevereCloud
changed the title
[Bug] При размонтировании кнопки вызывается onBlur
[Bug] На размонтированной кнопке вызывается setState
May 24, 2023
Варнинг генерируется preact при переключении между панелями
VKUI/src/hooks/useFocusVisible.ts
Lines 16 to 22 in f0d3223
The text was updated successfully, but these errors were encountered: