Fix wrong widget editor mode when splitted horizontally (#962)

Fix #961.

Signed-off-by: Yannick Schaus <github@schaus.net>
3.0.x
Yannick Schaus 2021-03-18 14:45:14 +01:00
parent 86b297d7e3
commit 48c968260b
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@
<f7-block :key="blockKey + '-h'" v-if="split === 'horizontal'" class="widget-editor horizontal">
<f7-row resizable>
<f7-col style="min-width: 20px" class="widget-code">
<editor class="widget-component-editor" :mode="'text/x-yaml'" :value="widgetDefinition" @input="(value) => widgetDefinition = value" />
<editor class="widget-component-editor" mode="application/vnd.openhab.uicomponent+yaml?type=widget" :value="widgetDefinition" @input="onEditorInput" />
</f7-col>
</f7-row>
<f7-row v-if="ready" resizable>