Skip to content

Commit 65517bb

Browse files
committed
added comments
1 parent c26cb16 commit 65517bb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/core/local-disk/shapes-to-document.mapper.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,16 @@ const AddDefaultValuesForInputPropsPlaceHolderAndPassword = (
5353
otherProps: {
5454
...shape.otherProps,
5555
isPlaceholder:
56+
// Small update no need to go for 0_3, but input placeHolder needs to have default value
57+
// if undefined
5658
shape.otherProps?.isPlaceholder !== undefined
5759
? shape.otherProps?.isPlaceholder
5860
: true,
5961
textColor:
62+
// Small update, no need to go for 0_3,
63+
// but input textColor needs to have default value
64+
// if undefined, and textColor was placeholder gray color
65+
// in this case change it to black
6066
shape.otherProps?.isPlaceholder === undefined &&
6167
shape.otherProps?.textColor === '#8c8c8c'
6268
? '#000000'

0 commit comments

Comments
 (0)