-
Notifications
You must be signed in to change notification settings - Fork 356
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
bugfix: first multiselection has no _lastSelectedIndex #788
Conversation
@frykten Yes this should certainly get a test. I'm a bit surprised the functionality isn't already covered by a test. It is because the tested functionality uses click, then shift+click? And your issue is trigged by shift+click without a preceding click? |
@mixonic Yes, that's exactly it. What would you advise: change the method selectRange() used to select from a |
Ah yes, that is the case: ember-table/addon-test-support/pages/ember-table.js Lines 74 to 77 in 8519064
I think that means we have essentially left undefined what the behavior for shift+click when there is nothing selected should be. Some existing UX to consider:
Are there other cases to consider? We just need to make a design decision, I will raise it with some other maintainers as well. |
IMO |
@mixonic I don't see any other cases. I fixed-up the PR to add the test. |
0e52567
to
0bd5806
Compare
Done @mixonic |
Great! Thank you @frykten I'm not sure we will make a release for a week or two because of the holiday, but keep an eye out. |
#787
Should I add a test?