cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
563
Views
0
Helpful
1
Replies

State Button focus issue

simonbrinkmann
Level 1
Level 1

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.

1 Accepted Solution

Accepted Solutions

dekwan
Cisco Employee
Cisco Employee

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

View solution in original post

1 Reply 1

dekwan
Cisco Employee
Cisco Employee

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