Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Custom Web Elements/Components receive undefined instead of false on subsequent re-render #11276

Closed
Maxim-Mazurok opened this issue Jul 2, 2024 · 3 comments · May be fixed by #11278
Closed

Comments

@Maxim-Mazurok
Copy link

Vue version

3.4.31

Link to minimal reproduction

https://jsfiddle.net/uwegz5y8/23/

Steps to reproduce

  1. Load repro
  2. See Boo: false; typeof: boolean - as expected, because boo attribute is not set
  3. Click "Toggle Boo"
  4. See Boo: true; typeof: boolean - as expected, because now boo attribute is set
  5. Click "Toggle Boo" again
  6. See Boo: ; typeof: undefined - unexpected, since boo attribute is removed - we expect to receive false just like in the 2nd step previously

What is expected?

false

What is actually happening?

undefined

System Info

No response

Any additional comments?

This is similar to #10324, which was not actually a duplicate of #9006

b49306a didn't fix the issue. All it did was to change null to undefined in the 6th step of the original issue reproduction.

Kinda related to #9697

@linzhe141
Copy link
Contributor

playground

@yyx990803
Copy link
Member

fixed in 506c4c5

@Maxim-Mazurok
Copy link
Author

Does not reproduce anymore with 3.5.0-beta.1 (https://jsfiddle.net/gu3rx7ed/)
Thank you!

@github-actions github-actions bot locked and limited conversation to collaborators Aug 24, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
3 participants