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 439 forks source link

UiPopover with UiDatepicker inside #426

Open plakak opened 5 years ago

plakak commented 5 years ago

Hello,

I have a UiDatepicker inside a popover. When I select a date both Datepicker and Popover closes. It's probable treated as click outside popover so close is fired.

I was trying to set openOn to always after Datepicker opens and then switching back to click after it closes itself but it seems this value is only evaluated at creation and you can't change it later.

It would be nice to allow changing this during a lifespan of popover so one could prevent popover from reacting on click events when it's needed.

JosephusPaye commented 5 years ago

Makes sense, I'll see how this can be added.