TerryZ / v-selectmenu

SelectMenu for Vuejs, A simple, easier and highly customized menu solution
https://terryz.github.io/docs-vue/#/selectmenu
MIT License
187 stars 25 forks source link

Button text is not being updated #16

Closed anshumansworld closed 5 years ago

anshumansworld commented 5 years ago

After selecting an option button text should be changed. It always shows Select an option

<v-selectmenu v-model="state.selectedChatFilter"
                          :regular="true"
                          :data="chatFilters"></v-selectmenu>
chatFilters: [
    {name: 'Active Chats', id: 'activeChats', content: 'Active Chats'},
    {name: 'Closed Chats', id: 'closedChats', content: 'Closed Chats'},
    {name: 'All Chats', id: 'allChats', content: 'All Chats'}
]
selectedChatFilter = 'activeChats'

Also if I remove key content from list, text (Active Chats/Closed Chats/All Chats) is not being displayed in options

TerryZ commented 5 years ago

Please try upload your code to codepen, jsfiddle or jsbin.

anshumansworld commented 5 years ago

Here is the stackblitz url: https://stackblitz.com/edit/vue-czssb2

TerryZ commented 5 years ago

You are using regular menu mode, the button plain text will not change in that mode and menu item can 't be selected.

Use advanced mode and close search bar maybe is what you want.

<v-selectmenu v-model="selectedChatFilter"  
                :query="false"  
                :data="chatFilters">
</v-selectmenu>
anshumansworld commented 5 years ago

Any option in advance mode to hide header in dropdown?

TerryZ commented 5 years ago

No way to close header in advanced mode so far. In future release can set :title="false" to close.