Menu escape should not clear selection#4285
Conversation
|
Build successful! 🎉 |
|
Build successful! 🎉 |
| selectionManager: state.selectionManager, | ||
| collection: state.collection, | ||
| disabledKeys: state.disabledKeys, | ||
| preventEscapeClearsSelection: true, |
There was a problem hiding this comment.
Now that I think about this, if menu is the only place where this is the case, we could consider overriding the keyboard handler and not forwarding escape instead of a new option.
Otherwise, this prop name doesn't really fit our pattern... disallowClearSelection or disallowEscape might be closer (like disallowEmptySelection and disallowSelectAll) but still sorta weird.
There was a problem hiding this comment.
I think I like not introducing a new prop for the moment more. If we find two+ instances where this is needed, then we could revisit adding it
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
## API Changes
unknown top level export { type: 'identifier', name: 'Column' } |
Closes #3987
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project: