You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @ishiki-arata, truly sorry for the delayed response.
I thought this is covered but apparently there is an issue. The query input is disabled but the dropdown opens. I will definitely fix that but until then you can achieve the desired effect in a few ways:
Apply pointer-events: none to prevent mouse interaction with the select. One will still be able to focus/open it using keyboard navigation with tab key though. Therefore option 2:
During registration of the plugin you may override the open method to make it aware of the disabled attr:
importVueSelect,{vSelect}from'@desislavsd/vue-select'Vue.use(VueSelect,{mixin: {methods: {// override the default `open` methodopen(){// prevent opening the dropdown if $attrs.disabled == trueif(this.$attrs.disabled)returnthis.close();// otherwise call the original method we may take from the original // vSelect component definition ( standard Vue component definition that has methods )returnvSelect.methods.open.apply(this,arguments)},},},})
I need to make the select disabled or enabled when I have activeEdit: true or false.
:disabled="!activeEdit"
I tried adding this to the but it does not work. Also tried readonly instead of disabled, doesn't work either. Any clue how to go around this?
Thank you!
The text was updated successfully, but these errors were encountered: