Skip to content
Permalink
Browse files

fix(MdSelect): Reactive options (#1447)

Make options reactive via a hidden node.

fix #1262
  • Loading branch information...
VdustR authored and marcosmoura committed Jan 26, 2018
1 parent 8ade40f commit 01dfdfb2cf23adba1b48589ce61a164b601bd46c
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/components/MdField/MdSelect/MdSelect.vue
@@ -33,10 +33,14 @@
:md-content-class="mdClass"
:style="menuStyles"
@enter="onMenuEnter">
<slot />
<slot v-if="showSelect" />
</md-menu-content>
</keep-alive>

<div v-if="!showSelect" v-show="false">
<slot />
</div>

<input class="md-input-fake" v-model="model" :disabled="disabled" readonly tabindex="-1" />
<select readonly v-model="model" v-bind="attributes" tabindex="-1"></select>
</md-menu>

0 comments on commit 01dfdfb

Please sign in to comment.
You can’t perform that action at this time.