[PR #1700] [CLOSED] Fix Security Code Input Focus Issue After Count Change. #2870

Closed
opened 2026-01-29 18:20:50 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/radzenhq/radzen-blazor/pull/1700
Author: @SyedShahriyarAli
Created: 9/18/2024
Status: Closed

Base: masterHead: master


📝 Commits (1)

  • bedde54 Addressed an issue where the security code input component does not focus on newly added input boxes after the count is changed.

📊 Changes

1 file changed (+79 additions, -68 deletions)

View changed files

📝 Radzen.Blazor/wwwroot/Radzen.Blazor.js (+79 -68)

📄 Description

This PR addresses an issue where the security code input component does not focus on newly added input boxes after the count is changed. The problem occurs because the JavaScript initializes the inputs only once during the initial rendering and does not reinitialize when the component is updated.

Changes:

  • Modified the createSecurityCode JavaScript function to reinitialize inputs and reattach event listeners whenever the component is updated.
  • Added a reinitialize function to handle re-fetching the input elements and attaching the event listeners.
  • Removed previous event listeners before attaching new ones to prevent duplicates.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/radzenhq/radzen-blazor/pull/1700 **Author:** [@SyedShahriyarAli](https://github.com/SyedShahriyarAli) **Created:** 9/18/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`bedde54`](https://github.com/radzenhq/radzen-blazor/commit/bedde547bb1f66e1e3e6753f3f71a4cf686cace4) Addressed an issue where the security code input component does not focus on newly added input boxes after the count is changed. ### 📊 Changes **1 file changed** (+79 additions, -68 deletions) <details> <summary>View changed files</summary> 📝 `Radzen.Blazor/wwwroot/Radzen.Blazor.js` (+79 -68) </details> ### 📄 Description This PR addresses an issue where the security code input component does not focus on newly added input boxes after the count is changed. The problem occurs because the JavaScript initializes the inputs only once during the initial rendering and does not reinitialize when the component is updated. ## Changes: - Modified the `createSecurityCode` JavaScript function to reinitialize inputs and reattach event listeners whenever the component is updated. - Added a reinitialize function to handle re-fetching the input elements and attaching the event listeners. - Removed previous event listeners before attaching new ones to prevent duplicates. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 18:20:50 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#2870