tonic-ui
tonic-ui copied to clipboard
The tooltip around the button will show again when closing the modal
Description
The button will receive focus when closing the modal. It should provide the ability to turn off the onFocus
event for the tooltip.
How to reproduce
<Tooltip label="This is a tooltip.">
<Button onClick={onOpen}>
Launch modal
</Button>
</Tooltip>
1. Hover over the button
2. Launch the modal
3. Close the modal
Here have a workaround is add finalFocusRef prop into <Modal>.
@gckenny PR #748 introduces several new props to Drawer, Modal, and Tooltip components, enabling more precise control for the focus behavior.