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'm not sure whether it's a bug or if I've built my component wrong, so would appreciate a second set of eyes :)
I've made a component for the purpose of reusability, therefore I need to expose the hover & focus states to certain divs to visually show optional icons within the input field. This is what I came up with:
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.
-
I'm not sure whether it's a bug or if I've built my component wrong, so would appreciate a second set of eyes :)
I've made a component for the purpose of reusability, therefore I need to expose the hover & focus states to certain divs to visually show optional icons within the input field. This is what I came up with:
I followed the syntax from the documentation but the "focus" prop doesn't seem to work while hover does.
I made a codesandbox here for the ease of testing: https://codesandbox.io/p/devbox/input-focus-bug-cf7c8h?file=%2Fsrc%2FInput.jsx%3A1%2C1-45%2C26
Any help would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions