Fix Et2Switch in toolbar is not draggable

This commit is contained in:
Hadi Nategh 2022-08-03 17:25:17 +02:00
parent 420a491e34
commit 42ccb288f0

View File

@ -627,7 +627,8 @@ export class et2_toolbar extends et2_DOMWidget implements et2_IInput
widget = <Et2Checkbox>loadWebComponent('et2-switch', {
id: `${this.id}-${action.id}`,
toggleOn: action.data.toggle_on,
toggleOff: action.data.toggle_off
toggleOff: action.data.toggle_off,
class: `et2_toolbar_draggable${this.id}`,
}, this);
widget.value = action.checked;
action.data.widget = widget;