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
fireEvent will suppress events if they occur on elements that are disabled. However, there are many things that can cause an element to be treated as disabled and it's sometimes not obvious what that might be. Is there an easy way to report why a particular event was suppressed?
I don't believe there is and I usually have to step through the Testing Library code to discover what prop is causing my issue. It would be phenomenal if there was some opt in warning when events get suppressed. Wanted to ask here first before posting a feature request.
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
-
fireEvent
will suppress events if they occur on elements that are disabled. However, there are many things that can cause an element to be treated as disabled and it's sometimes not obvious what that might be. Is there an easy way to report why a particular event was suppressed?I don't believe there is and I usually have to step through the Testing Library code to discover what prop is causing my issue. It would be phenomenal if there was some opt in warning when events get suppressed. Wanted to ask here first before posting a feature request.
Beta Was this translation helpful? Give feedback.
All reactions