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 would like to suggest a feature to default the popupId property to the useId hook when it has been omitted. The purpose of the useId hook is exactly for cases such as these, and it would cut down some boilerplate of always having to manually specify popupId: useId() every time.
The text was updated successfully, but these errors were encountered:
Makes sense, I'll see if I can implement this soon, would also be open to a PR.
I've generally used explicit IDs so that I can select the popup component in Selenium tests, though attaching data- attributes for test selectors would work too
I would like to suggest a feature to default the
popupId
property to theuseId
hook when it has been omitted. The purpose of theuseId
hook is exactly for cases such as these, and it would cut down some boilerplate of always having to manually specifypopupId: useId()
every time.The text was updated successfully, but these errors were encountered: