Skip to content

Immediate doesn't work in TextField #3041

Closed

Description

@NicoDevelops

🐛 Bug Report

FluentTextField has Immediate and ImmediateDelay options to react to the value changing immediately. They don't work right now.

Seems to be identical to Issue 2672.

I suppose this is also the case for the FluentNumberField.

💻 Repro or Code Sample

The problem appears to be that FluentTextField doesn't bind oncontolinput, as seen in Issue 2672's resolving Pullrequest #2685:

See FluentCombobox.razor changes here.

🤔 Expected Behavior

ValueChanged raised while typing in a text field when immediate is true.

😯 Current Behavior

ValueChanged is only raised when focus leaves the combo box.

💁 Possible Solution

🔦 Context

🌍 Your Environment

  • OS & Device: [e.g. MacOS, iOS, Windows, Linux] on [iPhone 7, PC]
  • Browser [e.g. Microsoft Edge, Google Chrome, Apple Safari, Mozilla FireFox]
  • .NET and Fluent UI Blazor library Version [e.g. 8.0.2 and 4.4.1]

Activity

  1. added
    triage
    on Dec 11, 2024
  2. changed the title [-]fix: Immediate doesn't work in TextField[/-] [+]Immediate doesn't work in TextField[/+] on Dec 11, 2024
  3. dvoituron commented on Dec 11, 2024

    @dvoituron
    Collaborator

    I cannot reproduce your issue.

    I'm used this code:

    <FluentTextField @bind-Value="value1" Immediate="true"></FluentTextField>
    <p>You entered: @value1</p>
    
    @code {
        string? value1;
    }

    And the result is correct:
    Image

  4. added
    Not reproducible
    and removed
    triage
    on Dec 11, 2024
  5. MarvinKlein1508 commented on Dec 13, 2024

    @MarvinKlein1508
    Collaborator

    Nico (@NicoDevelops) it works for me as well. Which rendering mode are you using? When you are using the SSR render mode then their won't be any interactivitiy.

  6. vnbaaij commented on Dec 16, 2024

    @vnbaaij
    Collaborator

    Closing due to inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Not reproducible

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions