Some UIB components have a focus
method (e.g., DatePicker) that can be used to focus the component programmatically. It would also be nice to have a complementary blur
method to unfocus those components. Usually, I’d just document.activeElement.blur()
to achieve this result, but in the case of the DatePicker
, this would unfocus the <input>
element while leaving the picker open.