Skip to content

Cannot two-way bound number type input #108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wnvko opened this issue Apr 22, 2024 · 2 comments
Open

Cannot two-way bound number type input #108

wnvko opened this issue Apr 22, 2024 · 2 comments

Comments

@wnvko
Copy link

wnvko commented Apr 22, 2024

Description

I have an IgbInput with DisplayType set to Numer. I am trying to two-way bound it to a numeric variable.

Steps to reproduce

Use code like this:

<IgbInput DisplayType="InputType.Number" @bind-Value="@_number" Label="Numeric" input_group-scope></IgbInput>

@code {
    private double _number;
}

Result

Error is shown - Cannot convert from double to string.

Expected result

Should be able to bind numeric input to numeric value. Note, this does not work with int too.

@wnvko wnvko added the 🐛 bug Something isn't working label Apr 22, 2024
@Lipata Lipata added the forms label Apr 22, 2024
@MayaKirova MayaKirova added the ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged. label Jun 6, 2024
@dkamburov
Copy link

It's fixed internally, but we'll close it once the official release version is out.

@dkamburov dkamburov reopened this Aug 7, 2024
@dkamburov dkamburov added 👀 status: in-review and removed ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged. labels Oct 23, 2024
@dkamburov
Copy link

It's reverted as the fix ends up being major breaking change, we'd probably try adding numeric editor in order to handle this.

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

No branches or pull requests

5 participants