fix: [workflow:editor] Refresh picker with value selected by default on load

- Make sure chosen knows about the selected value when the first one in the list is picked on page load
pull/9370/head
Sami Mokaddem 2023-10-25 12:29:54 +02:00
parent 786ad2dde8
commit 553226012a
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 2 deletions

View File

@ -1548,7 +1548,7 @@ function afterNodeDrawCallback() {
var $nodes = $drawflow.find('.drawflow-node')
$nodes.find('.start-chosen').each(function() {
var chosenOptions = $(this).data('chosen_options')
$(this).chosen(chosenOptions)
$(this).chosen(chosenOptions).trigger('change')
})
toggleDisplayOnFields()
enablePickerCreateNewOptions()
@ -1558,7 +1558,7 @@ function afterNodeDrawCallback() {
function afterModalShowCallback() {
$blockModal.find('.start-chosen').each(function() {
var chosenOptions = $(this).data('chosen_options')
$(this).chosen(chosenOptions)
$(this).chosen(chosenOptions).trigger('change')
})
var cmOptions = {
theme: 'default',