UIB Input Component - Input invalid set
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2024 07:31 PM
OK, here's the scenario:
- Using 'Input' component on a UIB page
- Client state param is bound to the input's value
- Client script is set as an event handler for the "Input invalid set" event, which is supposed to fire when the user blurs the field (at least that's what documentation says). I want to do a specific action when the user is interacting with the field and they blur it.
- Using 'Button' component with client script event handler on click that updates the client state param that is bound to the input, via api.setState('<paramBoundToInput>', 'some value')
- If I never give focus to the input (therefore I can't blur it), then I click the button that runs the script with the setState, for some reason the input's "Input invalid set" fires.
If that event is going to fire anytime a bound state param changes, then it isn't really a "blur" triggered event, which is very limiting in certain scenarios (namely mine). Would love to hear from ServiceNow on this.
0 REPLIES 0