We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The function args is not even used in the function it is passed into. It just gets passed in and returned right back out without any mutations.
ariaPressedState(ariaPressed) { const ariaToggle = function (event) { const ariaPressedNode = this.shadowRoot.querySelector('[aria-pressed]'); ariaPressedNode.setAttribute("aria-pressed", 'false'); if (event.type === 'mousedown') { ariaPressedNode.ariaPressed = true; } else { ariaPressedNode.ariaPressed = false; } if (event.type === 'keydown') { if (event.code === 'Enter' || event.code === 'Space') { ariaPressedNode.ariaPressed = true; } else { ariaPressedNode.ariaPressed = false; } } }; // Add event listeners this.addEventListener('mousedown', ariaToggle); this.addEventListener('mouseup', ariaToggle); this.addEventListener('keydown', ariaToggle); this.addEventListener('keyup', ariaToggle); return ariaPressed; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The function args is not even used in the function it is passed into. It just gets passed in and returned right back out without any mutations.
The text was updated successfully, but these errors were encountered: