JosephusPaye / Keen-UI

A lightweight Vue.js UI library with a simple API, inspired by Google's Material Design.
https://josephuspaye.github.io/Keen-UI/
MIT License
4.1k stars 438 forks source link

Add options to control closure of the popover. #536

Closed olsgreen closed 2 years ago

olsgreen commented 2 years ago

Adds 'close-on-esc' and 'close-on-external-click' props to the UiPopover component in a non-breaking manor.

These props give the ability to fully control a popovers display state. This allows us to force parent popovers to stay open when nested popovers (which are appended to the body) receive click events.

Addresses #535.

JosephusPaye commented 2 years ago

Looks good, thanks!

JosephusPaye commented 2 years ago

Released in https://github.com/JosephusPaye/Keen-UI/releases/tag/v1.4.0