Skip to content

Commit

Permalink
fixed enableUncheckedValue bug, fixed _cq_template enum/enumNames, re…
Browse files Browse the repository at this point in the history
…moved default value to match with checkbox
  • Loading branch information
Gulshan Mishra committed Sep 29, 2023
1 parent a61e224 commit faa9ecc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0"
jcr:primaryType="nt:unstructured"
jcr:title="Switch"
default="0"
fieldType="checkbox"/>
fieldType="checkbox"
enum="[1,0]"
enumNames="[ON,OFF]"/>
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"use strict";

const EDIT_DIALOG = ".cmp-adaptiveform-switch__editdialog",
ENABLE_UNCHECKED_VALUE = EDIT_DIALOG + " .cmp-adaptiveform-switch__enable-unchecked-value",
ENABLE_UNCHECKED_VALUE = EDIT_DIALOG + " .cmp-adaptiveform-switch__enable-unchecked-value coral-switch",
ENUM_OPTION = ".cmp-adaptiveform-switch__enums coral-multifield-item",
SWITCH_TYPE = EDIT_DIALOG + " .cmp-adaptiveform-switch__type",
SWITCH_DEFAULTVALUE = EDIT_DIALOG + " .cmp-adaptiveform-switch__value",
Expand Down

0 comments on commit faa9ecc

Please sign in to comment.