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

State Button focus issue

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.

Everyone's tags (5)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: State Button focus issue

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

1 REPLY 1
Cisco Employee

Re: State Button focus issue

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

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards