react
react copied to clipboard
SelectMenu has required css property
Describe the bug
I tried to use <SelectMenu> from this example and get an error message that css property is missing
To Reproduce
Steps to reproduce the behavior:
- Copy this code from docs
- Error should appear
Expected behavior
There is no error message. I think that css property should not be required
Screenshots
Additional context
@primer/components v28.3.1 TypeScript v4.3.5
Hi, @pavelkeyzik. That's likely related to this issue: https://github.com/primer/react/issues/1163
We're working on a fix. In the meantime, let me know if @dmarcey's workaround works for you.
Thanks, @colebemis! It works well 👍
Closing this as a duplicate of #1163