Skip to content
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

Modal close button missing after 5.x #2529

Closed
juliushaertl opened this issue Mar 1, 2022 · 5 comments · Fixed by #2532
Closed

Modal close button missing after 5.x #2529

juliushaertl opened this issue Mar 1, 2022 · 5 comments · Fixed by #2532
Assignees
Labels
1. to develop Accepted and waiting to be taken care of bug Something isn't working regression Regression of a previous working feature

Comments

@juliushaertl
Copy link
Contributor

This seems to occur in viewer as well as on the documentation examples:

https://nextcloud-vue-components.netlify.app/#/Components/Modal

For some reason the single entry item for rendering the ActionButton seems to be missing:

Screenshot 2022-03-01 at 18 54 29
l

@juliushaertl juliushaertl added 1. to develop Accepted and waiting to be taken care of bug Something isn't working regression Regression of a previous working feature labels Mar 1, 2022
@juliushaertl
Copy link
Contributor Author

Screenshot 2022-03-01 at 19 35 10

@juliushaertl
Copy link
Contributor Author

@skjnldsv Any idea why that could happen? Found this when guiding @vinicius73 a bit through our frontend development stack.

Seems to come from https://github.com/nextcloud/nextcloud-vue/blob/master/src/components/Actions/Actions.vue#L463 but I cannot really explain why this only happens in the modal, while the same combination of a single ActionButton works fine outside.

Further this was introduced somewhere between 4.4.0 and 5.0.0.

@vinicius73
Copy link
Contributor

It is related to the last release of Vue
vuejs/vue#12104
vuejs/vue#12102

Probably the slots are not yet available in the created life cycle, because of that the reactivity of Actions.vue does not detect the icon slot.

@skjnldsv
Copy link
Contributor

skjnldsv commented Mar 2, 2022

It is related to the last release of Vue
vuejs/vue#12104

seems to be fixed with 2.6.14 which we are using 🤔

@juliushaertl
Copy link
Contributor Author

Bisecting showed #2385 as the commit causing the regression. Might be that the upstream change from functional to regular components now causes the rendering to happen earlier when the slot details are not fully available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of bug Something isn't working regression Regression of a previous working feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants