q-table @selection evt is undefined if overriding any template. #14004
Unanswered
mcmahonr
asked this question in
General - Components / Directives / etc
Replies: 1 comment
-
Just found this is a known issue I will follow this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to implement the custom-multiple-selection with q-popup-edit for the cells.
When I added my template to the body slot I noticed the evt object was undefined when the onSelection function was called. It doesn't know if shift is pressed or not.
Thinking it was just my template, I removed my template altogether and it worked (The multi selection worked without the q-popup-edit ability)
I figured I'd try something simpler and implement just a button change to learn more about the behavior so I took the code from the selection-cell-slots example which uses the body-selection and header-selection slots. When I do this evt is undefined when passed to the onSelection function. When I remove the templates using the slots evt is there.
This might just be that I don't understand JavaScript well enough yet, it seems like implementing a slot clobbers the evt before it's passed into the onSelection function.
In the below code using the shift button will not multi select. If you remove the two templates within the q-table object it will work.
Beta Was this translation helpful? Give feedback.
All reactions