Closed sromano closed 5 months ago
The event listener was added to the document and not removed. That seems to cause a previous version of document to still be listening besides new document being loaded and event listener added to the new one. Fixed by correctly removing the listener from document in disconnect.
This probably is undefined behaviour
(First of all, thanks and great work)
Short description this.element is showing a dom that is not part of HTML
More detail description I can see at the HTML (see Elements) that the dom element does not include data-information-referral--sessions--client-caller-selected-client-person-id-value="2492" (I confirm this is the only element in the HTML, I don't have any duplicate and no place in the HTML you can find data-information-referral--sessions--client-caller-selected-client-person-id-value="2492")
However, if you look at this.element and this.selectedClientPersonIdValue, it is showing information from a previous page experience. It's not reading current DOM. I made a breakpoint to catch it
Expected behavior this.element should not include any
data-information-referral--sessions--client-caller-selected-client-person-id-value="2492"
as the HTML has. And this.selectedClientPersonIdValue should be nilFragment of the Controller
Browser Google Chrome Version 125.0.6422.113 (Official Build) (arm64)