Skip to content

Commit e02aa1a

Browse files
Update core/src/components/input-otp/input-otp.tsx
Co-authored-by: Shane <[email protected]>
1 parent dd7476b commit e02aa1a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/components/input-otp/input-otp.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ export class InputOTP implements ComponentInterface {
2828
private parsedSeparators: number[] = [];
2929

3030
/**
31-
* The value of the OTP input when it is focused.
31+
* Stores the initial value of the input when it receives focus.
32+
* Used to determine if the value changed during the focus session
33+
* to avoid emitting unnecessary change events on blur.
3234
*/
3335
private focusedValue?: string | number | null;
3436

0 commit comments

Comments
 (0)