05-29-2017 05:46 AM
I'm trying to upgrade a third-party gadget from 10.6 to 11.5 and having some issues with the state button drawing too much attention to itself.
I found this in Header.js which wasn't in the the 10.6 version and it seems to give me problems when I trying to regain focus after performing an action that results in a userChange event:
In header.js a handler is added for the change event
_user.addHandler('chagne', _handleUserChange);
And in _handleUserChange the function ends with this:
// This currently causes the focus to go on the user's state every
// time it gets an agent event. This isn't ideal because it will
// pull the focus away from the existing action. The reason why it
// can't be fixed now is because other gadgets/components is pulling
// the focus away from the state. This issue should be addressed in
// future accessibility stories.
_stateBtn.focus();
Does anyone know how to override this behavior?
Thanks.
Solved! Go to Solution.
05-30-2017 11:28 AM
Hi Simon,
Unfortunately I am not sure there is a good way to override this behavior. The only "workaround" I can think of is to delay the focus call in your gadget so that it can happen after the one in the header.js. But, it isn't a foolproof way since it will all depend on timing.
Thanx,
Denise
05-30-2017 11:28 AM
Hi Simon,
Unfortunately I am not sure there is a good way to override this behavior. The only "workaround" I can think of is to delay the focus call in your gadget so that it can happen after the one in the header.js. But, it isn't a foolproof way since it will all depend on timing.
Thanx,
Denise
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide