File tree Expand file tree Collapse file tree
src/common/viz/ConfigDialogEntries Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -183,9 +183,9 @@ define([
183183 stringEntry . valueItems = stringEntry . valueItems || [ ] ;
184184 }
185185
186- const widget = await this . getEntryForProperty ( stringEntry ) ;
186+ const entry = await this . getEntryForProperty ( stringEntry ) ;
187187 if ( configEntry . valueItemsURL ) {
188- const $dropdown = widget . el . find ( 'select' ) ;
188+ const $dropdown = entry . el . find ( 'select' ) ;
189189 const updateDropdown = async ( ) => {
190190 const valueItems = await this . _fetchValueItems ( configEntry ) ;
191191 $dropdown . empty ( ) ;
@@ -202,13 +202,14 @@ define([
202202 opt . innerText = '' ;
203203 dropdown . appendChild ( opt ) ;
204204 }
205- this . _addExtraValueItems ( widget , configEntry ) ;
205+ this . _addExtraValueItems ( entry , configEntry ) ;
206206 }
207+ entry . widget . setValue ( dropdown . value ) ;
207208 } ;
208209 $dropdown . on ( 'focus' , _ . throttle ( updateDropdown , 1000 ) ) ;
209210 }
210211
211- return widget ;
212+ return entry ;
212213 }
213214
214215 async _fetchValueItems ( configEntry ) {
You can’t perform that action at this time.
0 commit comments