Skip to content

Commit eb7f838

Browse files
committed
refactor(input-otp): remove redundant code
1 parent 26349c5 commit eb7f838

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,9 +449,6 @@ export class InputOTP implements ComponentInterface {
449449

450450
if (event.key === 'Backspace') {
451451
if (this.inputValues[index]) {
452-
// Remove the value at the current index
453-
this.inputValues[index] = '';
454-
455452
// Shift all values to the right of the current index left by one
456453
for (let i = index; i < length - 1; i++) {
457454
this.inputValues[i] = this.inputValues[i + 1];

0 commit comments

Comments
 (0)