cheton
released this
29 Apr 13:57
·
148 commits
to master
since this release
What's Changed
Highlight
This release introduces several new props to control the focus behavior in the Drawer
, Modal
, and Tooltip
components. These changes are designed to address an issue identified in #345, where the focus is restored to the initially focused element upon closing the drawer or modal, causing an unexpected display of the tooltip.
Drawer
Name | Type | Default | Description |
---|---|---|---|
returnFocusOnClose | boolean | true | If true , the focus will be restored to the element that was focused on when the drawer was initially opened.ensureFocus is set to true . |
Modal
Name | Type | Default | Description |
---|---|---|---|
returnFocusOnClose | boolean | true | If true , the focus will be restored to the element that was focused on when the modal was initially opened.ensureFocus is set to true . |
Tooltip
Name | Type | Default | Description |
---|---|---|---|
closeOnPointerDown | boolean | true | If true , the tooltip will close while the pointer is pressed down. |
openOnFocus | boolean | true | If true , the tooltip will open upon receiving focus. |
Full Changelog: https://github.com/trendmicro-frontend/tonic-ui/compare/@tonic-ui/[email protected]...@tonic-ui/[email protected]