Skip to content

Commit 80b6800

Browse files
committed
Fix TypeError in item-picker on chart reload
Fixes: ``` smart-select-class.js:105 Uncaught TypeError: Cannot read properties of undefined (reading 'options') at HTMLInputElement.handleInputChange (smart-select-class.js:105:41) at HTMLDivElement.handleLiveEvent (dom7.module.js:320:48) ``` Signed-off-by: Florian Hotze <[email protected]>
1 parent 36dcc2f commit 80b6800

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bundles/org.openhab.ui/web/src/pages/analyzer/analyzer.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
<f7-block class="no-margin no-padding" v-show="controlsTab === 'series'">
3939
<f7-row>
4040
<f7-col :width="100" />
41-
<f7-col :width="100" v-if="showChart">
41+
<!-- use v-show instead of v-if to keep the item-picker props valid while selecting Items and avoid TypeErrors -->
42+
<f7-col :width="100" v-show="showChart">
4243
<div class="card data-table">
4344
<div class="card-header no-padding" style="min-height: auto">
4445
<f7-list style="width: 100%">

0 commit comments

Comments
 (0)