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] Table Select-All Issue #1348
Comments
* fix(MdTable): multiple selection with table sorting an easy way to handle multiple selection fix #1348 * refactor(MdTable): single selection using instance comparing instead of id comparing both `MdTable` and `MdTableRow` emit `md-selected` event to avoid breaking change * feat(MdTable): new props `:md-selected-value.sync` for reactive selection fix #1292 * fix(MdTable): `syncSelectedValue` without `mdSelectedValue` in multiple selecting mode * fix(MdTableHeadSelection): fix `allSelected`, now disabled row could be tick from `md-selected-value * fix(MdTableRow): remove `md-selected` event too many duplicated events on a selection. It should be emit from `MdTable` BREAKING CHANGE: no more `md-selected` event from `MdTableRow` * fix(MdTable): select event should be triggered after select update event * fix(MdTableHeadSelection): select all only take effect on selectable items
Hi, This is a screenshot I got from the codepen posted above, updated to use the new beta-8 Could you guys look into this? Thanks a lot! |
Would you fix your production for missing method I tried to remove this
It's seems that |
@VdustR heres the updated codepen |
* fix(MdTable): reactive selection fix #1348 * fix(MdTableRow): add addSelectableItem on nextTick to avoid destory after created * fix(MdTable): mdModelId necessary warning * fix(MdTableCellSelection): replace created with watch immediate * fix(MdTable): fix warn message * fix(MdTable): Generate UUID by object instance with WeakMap to avoid breaking change * fix(MdTable): remove unused Vue
Steps to reproduce
Create table with elements that can be sorted by id and other types, and sort them in a way that breaks the linearity of the id numbers. Once the select all checkbox is clicked, only some are selected.
Edit - There seems to be a litany of issues with select all, the same issue also appears and is reproducable in the codepen below with many other cases,
Which browser?
Vue-Material@^1.0.0-beta-7
Vue@^2.5.0
Electron@1.7.10
What is expected?
It should select all elements regardless of id order
What is actually happening?
I believe it is using the id's to decide which elements to select, and when it encounters out of order id's it goes off.
Reproduction Link
https://codepen.io/anon/pen/RxKMxW
Selecting all when sorted by id works fine, but when sorting by name or anything else that breaks the order of the ID column, not all elements are selected, only around half. https://i.imgur.com/pSTfj6N.png
The text was updated successfully, but these errors were encountered: