@@ -180,7 +180,7 @@ const DraggableUtils = {
180
180
window . latestId = input . getAttribute ( 'id' ) ;
181
181
window . populateEditForm ( input . getAttribute ( 'type' ) , {
182
182
'id' : input . getAttribute ( 'id' ) , 'height' : input . style . height , 'width' : input . style . width ,
183
- 'backgroundPalette' : input . getAttribute ( 'backgroundColor' ) , 'textPalette' : input . getAttribute ( 'textColor' ) , fontSize : parseInt ( input . style . fontSize ) ,
183
+ 'backgroundPalette' : input . getAttribute ( 'backgroundColor' ) , 'textPalette' : input . getAttribute ( 'textColor' ) , fontSize : parseInt ( input . style . fontSize ) || "12" ,
184
184
'font' : input . style . fontFamily , 'dropdownValues' : input . getAttribute ( "data-value" ) , 'value' : input . value , 'optionListValues' : input . getAttribute ( "data-value" )
185
185
} ) ;
186
186
} ) ;
@@ -221,7 +221,7 @@ const DraggableUtils = {
221
221
window . latestId = element . getAttribute ( 'id' ) ;
222
222
window . populateEditForm ( element . getAttribute ( 'type' ) , {
223
223
'id' : element . getAttribute ( 'id' ) , 'height' : element . style . height , 'width' : element . style . width ,
224
- 'backgroundPalette' : element . getAttribute ( 'backgroundColor' ) , 'textPalette' : element . getAttribute ( 'textColor' ) , fontSize : parseInt ( element . style . fontSize ) ,
224
+ 'backgroundPalette' : element . getAttribute ( 'backgroundColor' ) , 'textPalette' : element . getAttribute ( 'textColor' ) , fontSize : parseInt ( element . style . fontSize ) || "12" ,
225
225
'font' : element . style . fontFamily , 'dropdownValues' : element . getAttribute ( "data-value" ) , 'value' : element . value , 'optionListValues' : element . getAttribute ( "data-value" )
226
226
} ) ;
227
227
resolve ( canvasContainer ) ;
@@ -732,7 +732,7 @@ const DraggableUtils = {
732
732
radioGroup . addOptionToPage ( buttonValue , page , translatedPositions ) ;
733
733
} else if ( elementType === 'dropdown' ) {
734
734
// Handle Dropdowns
735
- const fieldValues = input . getAttribute ( 'data-value' ) ?. split ( ',' ) . map ( v => v . trim ( ) ) ;
735
+ const fieldValues = input . getAttribute ( 'data-value' ) ?. split ( ',' ) . map ( v => v . trim ( ) || [ ] ) ;
736
736
const field = form . createDropdown ( fieldKey ) ;
737
737
field . addOptions ( fieldValues ) ;
738
738
field . addToPage ( page , translatedPositions ) ;
0 commit comments