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

Hello @rcurley55,

I agree that property should be exposed to give JS code better insight into the state of the component.

Just made two feature requests, one for the isFocused property and another one for the isHovered on the checkbox and checklist components.

Will keep this post updated with any news I hear on these :+1: