react-spectrum
react-spectrum copied to clipboard
fix: ensure contains is used as default filter in ComboBox
Closes https://github.com/adobe/react-spectrum/issues/9233
✅ Pull Request Checklist:
- [x] Included link to corresponding React Spectrum GitHub Issue. --> https://github.com/adobe/react-spectrum/issues/9233
- [ ] Added/updated unit tests and storybook for this change (for new code or code which already has tests).
- [x] Filled out test instructions.
- [ ] Updated documentation (if it already exists for this component).
- [x] Looked at the Accessibility Practices for this feature - Aria Practices
📝 Test Instructions:
This PR fixes the bug in the github issue above. The best way to test this is to force passing defaultFilter: undefined and check that filtering still work as expected, falling back to contains function.
🧢 Your Project:
No response