fix cids_destroyed check using wrong selector#3981
Conversation
* fix cids_destroyed check using wrong selector Possibly closes #3979. * fix same mistake again * update test * add e2e test
|
@SteffenDE I'm perplexed by the implied meaning of the bug fix namin in the Changelog: A Has this now been changed in any way? |
|
@DaTrader this should not have changed the actual behavior in any way. There are two mechanisms at play with LiveComponents:
Most of the time, you pass the same ID to live_component as you also set on the DOM, but they don't actually need to be the same. Changing the DOM ID makes morphdom recreate the DOM nodes on the client, changing the LiveComponent ID replaces the LiveComponent on the server. The specific bug was encountered when changing the DOM ID only, but the actual LiveComponent (with same CID) was actually still being rendered. |
|
@SteffenDE Thanks for clarifying this. |
Possibly closes #3979.