Fix bug that caused changedCallback to fire instead of disconnectedCallback
This also prevents from modifying the custom attribute's this.value when disconnected, so that the old value can be used in the disconnected logic (because the value wasn't changed, the attribute was removed).
Anything I should add to tests?
Oops, realized I changed the wrong file. Let me edit...
Alright, updated.
Thanks! I'll probably add a test to this before merging.
Woops, closed by mistake.
I'll add a test soon...
I need to circle back to this! Putting it on my Todo list this time.