diff --git a/src/editor/components/jgraduate/jQuery.jPicker.js b/src/editor/components/jgraduate/jQuery.jPicker.js index f6780096..cde04bb4 100755 --- a/src/editor/components/jgraduate/jQuery.jPicker.js +++ b/src/editor/components/jgraduate/jQuery.jPicker.js @@ -1327,6 +1327,14 @@ export function jPickerMethod (elem, options, commitCallback, liveCallback, canc const all = color.active.val('all') if (win.alphaPrecision < 0) win.alphaPrecision = 0 else if (win.alphaPrecision > 2) win.alphaPrecision = 2 + + // Check if table with id 'fill_color' OR 'stroke_color' already exists, then remove it to avoid duplicate + const tableIds = ['fill_color', 'stroke_color'] + tableIds.forEach((id) => { + const currTable = document.querySelector('se-colorpicker#' + id).shadowRoot.querySelector('table') + if (currTable) { currTable.remove() } + }) + const controlHtml = ` ${win.expandable ? '' : ''}