Jump to content
Search Community

BennyBee

Members
  • Posts

    1
  • Joined

  • Last visited

BennyBee's Achievements

  1. I'm trying to add keyboard navigation controls to an accordion component. I have an element that is pinned with ScrollTrigger. Inside that element is a button which changes parts of the layout when clicked. When I trigger a ScrollTrigger.refresh(); the button loses focus - is there a reason for this? You can see it in the codepen (click in input, then use tab to focus button, then press enter to 'click' it) My only solution is to manually focus the button after the refresh - but then this would show it as focussed for the non-keyboard users which isn't ideal. Thanks!
×
×
  • Create New...