Skip to content

Commit

Permalink
Fix 'updateTokens' to change tokens value (primefaces#6433)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewMamdouh authored Apr 21, 2024
1 parent 4d4a214 commit cdc7c3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/inputotp/InputOtp.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const InputOtp = React.memo(

const updateTokens = (event, index) => {
const inputValue = event.target.value;
const newTokens = [...tokens];
let newTokens = [...tokens];

newTokens[index] = inputValue;
newTokens = newTokens.join('');
Expand Down

0 comments on commit cdc7c3e

Please sign in to comment.