vue-hxs / vue-split-layout

Draggable split panes for vuejs
MIT License
113 stars 34 forks source link

input element with v-model will lose focus on every typing #5

Closed zenchanhk closed 6 years ago

zenchanhk commented 6 years ago

Hi,

I encountered a weird behavior when putting an input element inside a pane, the input element loses focus on every typing. But if that input element is without v-model, it behaves as usual. Could you please look into it? <Pane title="Miscellaneous"><input v-model='value'/></Pane>

stdiopt commented 6 years ago

Just checked it seems to happen when the v-model is on the same level as the layout, if you have a component with v-model it will work (as the demo) if you want to use that, meanwhile I will find out what can be done to solve that

zenchanhk commented 6 years ago

Thanks for your info. I will figure out another way to do it.