-
-
Notifications
You must be signed in to change notification settings - Fork 101
Mdl-Select click issue #46
Comments
Sorry for not answering. I completely forgot 😓 |
I thought I'd add my |
I think I should rethink the way mdl-menu handles options. I may end up doing something like mdl-tabs but this one is more complicated |
I encountered this problem as well. I think if we load the lists dynamically there should be a option to re-bind the click on the options. It seems like its a binding issue on click. Also if you are pulling a list from the database the column name in the database has to be value. |
Has this been resolved? I'm having this same issue still. |
ATM you need to manually handle it for dynamically added options: handleClick (e) {
this.$refs.menu.$el.MaterialMenu.handleItemClick_(e)
} The example below is for Menus |
The example given above binds the handleClick event to a child component of the menu. In this case the |
I think the select component could probably be updated to handle the click itself: https://github.com/posva/vue-mdl/blob/develop/src/select.vue#L36 the select is a hack after all |
Yeah, my last-ditch effort is to fork it and change the |
Make sure to share it as a PR if you add it 🙂 |
Was there a fix for this? |
It doesn't work because I forgot to update the docs at https://github.com/posva/vue-mdl/blob/develop/doc/src/views/Selects.vue for Vue 2 but there's a working example at https://github.com/posva/vue-mdl/blob/develop/test/components/Select.vue |
Yeah I saw that and got it working from there. |
Yes, that would be great
…On Tue, 21 Mar 2017, 17:20 Ali Shaikh, ***@***.***> wrote:
Yeah I saw that and got it working from there.
I've fixed it locally in the docs, did you want me to create a new branch
and then send a PR from there?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#46 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAoicXnOOm57RTSudIgOK-N_7zbolfXoks5rn_jKgaJpZM4JB2WN>
.
|
I found out that if you push new data to the array that
:options
pointed to,clicking an element in the select doesn't close the select box. Is there any way to solve this issue?The text was updated successfully, but these errors were encountered: