-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MdTable] Reactive Selection requires next tick after data loaded #1866
Comments
Can you test this with dev branch? There was some changes to this merged. |
I think I can't fix that due to Vue's lifecycle. |
The current implementation couldn't handle selection data and table data at the same time vuematerial#1866
@VdustR The codesandbox example works normally with the pull request. I updated it two handle the AOT case, which is actually an issue in my project, where I have selection data before table data, as the selection is stored in the main collection, while the table's data is in a secondary collection. |
@rayfoss great! |
* comp(mdTable): nextTick selection data The current implementation couldn't handle selection data and table data at the same time #1866 * comp(MdTable): also handle case #2 AOT providing selection data Ahead of Time, aka, ahead of table data, will also break MdTable. This handles both cases. * comp(MdTable): remove redundant nextTick * comp(MdTable): merge glitch fix
This bug also prevents onSelect from firing until something is unselected. I updated the Sandbox to show that. Even after the patch, the md-select event is extremely unreliable https://codesandbox.io/s/6j7n78mz6z -- We need more tests |
Steps to reproduce
Which browser?
Chrome Stable
What is expected?
Selected options should be selected
What is actually happening?
Selected options don't appear
Reproduction Link
Case 1: Update at same time
https://codesandbox.io/s/lp7117wylq
Case 2: Give selection AOT
https://codesandbox.io/s/6j7n78mz6z
The text was updated successfully, but these errors were encountered: