Expose isFocused Attribute on input components

Figured I would post this over here as a request. As noted in this thread: Retrieving focus/blur across hundreds of components? I am working on a large form that relies on the Focus and Blur event handlers to highlight text in a preview pane. This has required the manual creation of a ton of event handlers. It would be great if input fields had an "isFocused" boolean attribute so that we could just check to see if the field is being edited. An "isHovered" attribute would be great for checkboxes and checklists too. Thanks!

1 Like