-
Notifications
You must be signed in to change notification settings - Fork 95
Allow using v-show for NcModal
#3767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Raimund Schlüßler <[email protected]>
b701a7c to
c9b813d
Compare
|
I think we can get rid of the watcher and the internal state already, simply replace all usage of Then it should work like before (default open when used with |
Let me try that. |
Sorry, I think this doesn't work, because we have no way of updating the |
I tried this, I do not see how this is breaking: It works for |
Mind creating a PR? I assumed the |
@susnux I created a PR #3769 with your changes in https://github.com/nextcloud/nextcloud-vue/tree/fix/ncmodal-show-prop and when using |
I noticed that, I am unsure about the badness of that too... |
|
Superseded by #3769. |
This is an alternative approach to #3762 to fix #497. It is a bit more effort compared to #3762 because we need an additional prop and kind of duplicate the internal
showModalstate with theshowprop to keep it non-breaking, but it feels more like vue to me.For the next major version we could make the
showprop required and get rid of the watcher and the internalshowModalvalue, which would simplify it a lot.