time-picker
time-picker copied to clipboard
Add a prop to configure whether `<kbd>esc</kbd>` should close the panel
This change is useful when you have multiple components listening to esc and you don’t want to close them all at the same time (e.g. if you render this component inside a modal or a side panel).
Coverage remained the same at 91.319% when pulling 273181d5cc2d23808d4302d763bbb7f7fa440c11 on fretlink:master into 77862aea6a529152c46fd43dee5fc48fce8100e8 on react-component:master.
I think this would be useful, I am facing a problem is that when I click on the selector it closes both the selector modal and the other modal I have open.
Until this gets merged doo you know any workaround for this @cyrilfretlink ?
It may be possible to toggle some state in onClose
and to decide to close your other components or not based on this state but merging this fix would make it much easier.