Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vikramlearning/blazorbootstrap
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: vikramlearning/blazorbootstrap
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: features/otp-input
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 15 files changed
  • 1 contributor

Commits on Jan 5, 2026

  1. OTP Input - Initial setup

    gvreddy04 committed Jan 5, 2026
    Configuration menu
    Copy the full SHA
    cdc2a0d View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2026

  1. Refactor OTPInput JS interop, add CharExtensions

    - Refactored OTPInput component to use more specific JS interop functions: replaced FocusElement with FocusInputElement and added SetInputElementValue for programmatically clearing input fields.
    - Added debug Console.WriteLine statements to OTPInput for easier tracing.
    - Updated OTP input margin class from MarginEnd1 to MarginEnd2 for improved spacing.
    - Added a new CharExtensions static class with an IsAlphanumeric extension method for char.
    gvreddy04 committed Jan 7, 2026
    Configuration menu
    Copy the full SHA
    f997370 View commit details
    Browse the repository at this point in the history
  2. Improve OTP input sanitization and focus handling

    Refactored the OnInput method to sanitize input by allowing only digits, handle pasted or fast-typed multiple digits by using the last digit, and clear invalid input both in state and DOM. Updated the input field if the raw value doesn't match the sanitized digit and streamlined focus movement logic. Removed unnecessary else branches and debug statements for cleaner code.
    gvreddy04 committed Jan 7, 2026
    Configuration menu
    Copy the full SHA
    976ac09 View commit details
    Browse the repository at this point in the history
Loading