its params setCaretPosition and caretPos were always set to something static
setCaretPosition: true
caretPos not passed, hence undefined
This PR removes these 2 params; and removes unnecessary checks
Note: not sure if these params were used for different purposes in the past, or if they are planned to used differently in the future, but they are not used as of right now, so I'm removing them.
Describe the change
updateValueAndCaretPosition
is used only oncesetCaretPosition
andcaretPos
were always set to something staticsetCaretPosition: true
caretPos
not passed, henceundefined
This PR removes these 2 params; and removes unnecessary checks
Note: not sure if these params were used for different purposes in the past, or if they are planned to used differently in the future, but they are not used as of right now, so I'm removing them.