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.
  • 7 commits
  • 0 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

Commits on Jan 31, 2026

  1. Improve OTPInput paste handling and JS interop safety

    - Allow multi-digit paste by setting maxlength=6 on input fields.
    - Distribute pasted digits across OTP fields and update focus accordingly.
    - Add SafeInvokeVoidAsync to safely wrap JS interop calls.
    - Replace direct JSRuntime.InvokeVoidAsync calls with SafeInvokeVoidAsync to handle component disposal and JS runtime disconnects gracefully.
    - Remove old logic that only used the last digit on multi-digit input.
    - Improves robustness and user experience during input and navigation.
    gvreddy04 committed Jan 31, 2026
    Configuration menu
    Copy the full SHA
    7f01ef4 View commit details
    Browse the repository at this point in the history
  2. Improve JS interop reliability with SafeInvokeVoidAsync

    Introduce SafeInvokeVoidAsync in BlazorBootstrapComponentBase to safely handle JSRuntime calls, preventing exceptions on disposal or JS disconnect. Refactor all components to use this method instead of direct JSRuntime.InvokeVoidAsync calls. Add isJsRuntimeAvailable flag to skip future JS calls after disconnect. Enhance Tabs disposal logic and remove redundant SafeInvokeVoidAsync from OTPInput. Add global using for Microsoft.JSInterop. Update PDF JS initialization to check for canvas existence before creating Pdf instance.
    gvreddy04 committed Jan 31, 2026
    Configuration menu
    Copy the full SHA
    a10a6fd View commit details
    Browse the repository at this point in the history
  3. Refactor JS interop: add JsInteropBase, unify error handling

    Introduce JsInteropBase to centralize JS module management and safe invocation for Blazor components. Refactor PdfViewerJsInterop, SortableListJsInterop, and ThemeSwitcherJsInterop to inherit from this base class, removing redundant DisposeAsync logic. Replace direct JSRuntime.InvokeVoidAsync calls with SafeInvokeVoidAsync across components (charts, Demo, Snippet, Toasts) to handle disconnects and cancellations gracefully. Remove unused JS property from Demo. Improves robustness and maintainability of JS interop throughout the codebase.
    gvreddy04 committed Jan 31, 2026
    Configuration menu
    Copy the full SHA
    653d4b7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c58955c View commit details
    Browse the repository at this point in the history
Loading