Skip to content

[Dropdown] Removed deletion of text/value metadata#3879

Closed
mdehoog wants to merge 1 commit intoSemantic-Org:nextfrom
mdehoog:dropdown-data-fix
Closed

[Dropdown] Removed deletion of text/value metadata#3879
mdehoog wants to merge 1 commit intoSemantic-Org:nextfrom
mdehoog:dropdown-data-fix

Conversation

@mdehoog
Copy link
Contributor

@mdehoog mdehoog commented Mar 28, 2016

Fixes #3622.

Happy to put this behind a flag instead if you think the current behavior should be the default.

jlukic added a commit that referenced this pull request May 15, 2016
@jlukic
Copy link
Member

jlukic commented May 15, 2016

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.

jlukic added a commit that referenced this pull request May 15, 2016
jlukic added a commit that referenced this pull request May 15, 2016
@jlukic
Copy link
Member

jlukic commented May 15, 2016

Fixed in 2.2

@mdehoog
Copy link
Contributor Author

mdehoog commented May 16, 2016

@jlukic thanks so much for following this up 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants