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

fix(runtime-dom): fix vShow not respect passing display #10161

Merged
merged 5 commits into from
Feb 7, 2024

Conversation

Doctor-wu
Copy link
Contributor

@Doctor-wu Doctor-wu commented Jan 19, 2024

According to the doc. In this case, I think the correct behavior is when isVisible is false, modal content should not show no matter the display value is, and when isVisible is true, should switch style when click on Change Style button.

One different behavior is that if the vShow value is true but the user explicitly passes in display: none, then the PR change will follow the display: none passed in by the user instead of ignoring the user input like the current version. I think this is intuitive though.

close #10151

Copy link

github-actions bot commented Jan 19, 2024

Size Report

Bundles

File Size Gzip Brotli
runtime-dom.global.prod.js 90.3 kB (+41 B) 34.4 kB (+8 B) 31 kB (-1 B)
vue.global.prod.js 147 kB (+41 B) 53.7 kB (+15 B) 47.9 kB (-15 B)

Usages

Name Size Gzip Brotli
createApp 50.4 kB (+16 B) 19.7 kB (+5 B) 18 kB (+2 B)
createSSRApp 53.7 kB (+16 B) 21 kB (+5 B) 19.2 kB (+12 B)
defineCustomElement 52.7 kB (+16 B) 20.4 kB (+5 B) 18.7 kB (+39 B)
overall 64.1 kB (+16 B) 24.8 kB (+6 B) 22.5 kB (+33 B)

@Doctor-wu
Copy link
Contributor Author

Doctor-wu commented Jan 19, 2024

Will add the corresponding test case later, and I think we need an ecosystem ci check.

@Doctor-wu

This comment was marked as outdated.

@Doctor-wu

This comment was marked as outdated.

@Doctor-wu

This comment was marked as outdated.

@yyx990803 yyx990803 merged commit 9b19f09 into vuejs:main Feb 7, 2024
11 checks passed
@Doctor-wu Doctor-wu deleted the fix-v-show branch February 7, 2024 04:58
yyx990803 added a commit that referenced this pull request Feb 9, 2024
wangdaoo pushed a commit to wangdaoo/core that referenced this pull request May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@vue/compat: Bootstrap-Vue modals not properly displayed since Vue 3.4.9
2 participants