Closed RoelN closed 2 years ago
Hi @RoelN we have an open issue to support further element types for menu items, but in the v1 implementation we only supported anchor tags.
Here's the issue at question, if you'd be interested in contributing it, let us know! https://github.com/sparksuite/react-accessible-dropdown-menu-hook/issues/174
The implemention would probably be quite similar to the changes recently made in https://github.com/sparksuite/react-accessible-dropdown-menu-hook/pull/290.
Thanks, sorry I missed the open issue. I'd love to promise to submit a PR, but in all honesty it will probably be buried under all my other good intentions.
Thanks again for the useful hook!
Thanks for the accessible component! I have a problem when I'm using a button for the items, for example when looping through the items:
Our Typescript complains about the following:
It's currently disabled by disabling the linter (yech!) like so:
But I'd like to do this cleanly. Any advice would be greatly appreciated.