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
I have a form element which inherits the focus from the Modal and for some reason the input elements don't respond when i start typing.
I looked into the events attached to the form and it's nodes and found out that the focus event is receiving an event which fires infinitely. In chrome Devtools ,removing the event fixes the issue. So i was wondering if there's any way to disable this behaviour. I've read through some related issues, docs but nothing works.
The line marked with >>> was highlighted as the root cause of this issue
consthandleShow=(0,_restart_hooks_useEventCallback__WEBPACK_IMPORTED_MODULE_9__["default"])(()=>{modal.add();removeKeydownListenerRef.current=(0,dom_helpers_listen__WEBPACK_IMPORTED_MODULE_3__["default"])(document,'keydown',handleDocumentKeyDown);removeFocusListenerRef.current=(0,dom_helpers_listen__WEBPACK_IMPORTED_MODULE_3__["default"])(document,'focus',// the timeout is necessary b/c this will run before the new modal is mounted// and so steals focus from it>>>()=>setTimeout(handleEnforceFocus),true);if(onShow){onShow();}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I have a form element which inherits the focus from the Modal and for some reason the input elements don't respond when i start typing.
I looked into the events attached to the form and it's nodes and found out that the focus event is receiving an event which fires infinitely. In chrome Devtools ,removing the event fixes the issue. So i was wondering if there's any way to disable this behaviour. I've read through some related issues, docs but nothing works.
The line marked with
>>>was highlighted as the root cause of this issueAll reactions