Expectations
Following (this documentation)[https://garden.zendesk.com/react-components/select] I expected to be able to use maxHeight in one of these ways:
<Select maxHeight={'250'} /> or <Select maxHeight={250} />
Doc says:
One of type: string, number
Reality
These syntaxes get ignored by the component. The only one that works is <Select maxHeight={'250px'} />.
Steps to Reproduce
- Try to implement one of the broken syntaxes
- Witness that nothing happens
- Use the other syntax
- Admire that it works just fine
Implementation ideas:
- Fix Doc
or
- Add a conversion layer somewhere that ensures the
prop value is formatted in a way that's HTML/CSS compliant.
Fine Print
- Component: Select
- Browsers: Chrome (I suspect all)