Happy to put this behind a flag instead if you think the current behavior should be the default.
Removed deletion of text/value metadata from dropdown items (fixes #3622
Fixes #3879, #3622 - mutation observers occur erroneously with intern…
…al updates, causing issues
It looks like the internal issue was that mutation observers were accidentally triggering refresh during internal updates to addition or message.
I've resolved this by refactoring the mutation observers to ignore internal changes.
The reason we have to flush data attributes in refresh is that otherwise updating data-value (attribute data values) will not trigger the underlying .data('value') call to update.
These values are typically updated when a mutation observer detects the underlying DOM has been rewritten.
Fix debug msg position #3879
#3879 fixes item cache not updating after addition
Fixed in 2.2
@jlukic thanks so much for following this up 👍