Skip to content

Commit

Permalink
fix(MdSelect): Reactive options (#1447)
Browse files Browse the repository at this point in the history
Make options reactive via a hidden node.

fix #1262
  • Loading branch information
VdustR authored and marcosmoura committed Jan 26, 2018
1 parent 8ade40f commit 01dfdfb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/MdField/MdSelect/MdSelect.vue
Expand Up @@ -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>
Expand Down

0 comments on commit 01dfdfb

Please sign in to comment.