Skip to content
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

InputNumber | does not update the input value onInput #12733

Closed
cetincakiroglu opened this issue Mar 9, 2023 · 4 comments
Closed

InputNumber | does not update the input value onInput #12733

cetincakiroglu opened this issue Mar 9, 2023 · 4 comments
Assignees
Labels
Core Team Issue or pull request has been *opened* by a member of Core Team LTS-FIXED-13.4.2 PRO Support Issue was reported by PRO User Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@cetincakiroglu
Copy link
Contributor

Problem: Value only updates on blur and on focus events, cannot subscribe to valueChanges on input with reactive forms. Can't detect input change.

Expected behavior: Value updates on user input.

@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working Core Team Issue or pull request has been *opened* by a member of Core Team PRO Support Issue was reported by PRO User labels Mar 9, 2023
@cetincakiroglu cetincakiroglu added this to the 15.2.1 milestone Mar 9, 2023
@cetincakiroglu cetincakiroglu self-assigned this Mar 9, 2023
@github-actions github-actions bot added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Mar 9, 2023
@cetincakiroglu cetincakiroglu reopened this Mar 9, 2023
@cetincakiroglu cetincakiroglu added LTS-PORTABLE and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Mar 9, 2023
@github-actions github-actions bot added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Mar 9, 2023
@nathanvj
Copy link

Is this the same issue as the one I mentioned in Discord?

I want to update the value of an input field when the form value changes (e.g. user inputs a number that doesn't match a specific requirement, I want to reset it).

See StackBlitz, you can see that the hello is printed to the console and the form.getRawValue is updated, but the second time you change the input field it does not reflect the actual value anymore. StackBlitz here.

So steps to reproduce:

  • Input random number, e.g. 40
  • See that the value gets updated to 100 immediately
  • Do it again
  • Notice that it doesn't get updated to 100 in the UI (but still gets updated in the actual form value)

@cetincakiroglu
Copy link
Contributor Author

Is this the same issue as the one I mentioned in Discord?

I want to update the value of an input field when the form value changes (e.g. user inputs a number that doesn't match a specific requirement, I want to reset it).

See StackBlitz, you can see that the hello is printed to the console and the form.getRawValue is updated, but the second time you change the input field it does not reflect the actual value anymore. StackBlitz here.

So steps to reproduce:

  • Input random number, e.g. 40
  • See that the value gets updated to 100 immediately
  • Do it again
  • Notice that it doesn't get updated to 100 in the UI (but still gets updated in the actual form value)

Thanks for steps, I'll create a case in this fix and test the situation.

@cetincakiroglu cetincakiroglu removed the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Mar 13, 2023
@cetincakiroglu
Copy link
Contributor Author

cetincakiroglu commented Mar 16, 2023

Hi @nathanvj
I've tried the steps you've mentioned on this solution and the cases are different. I've opened an issue for yours #12765

@cetincakiroglu
Copy link
Contributor Author

fixed in 558fed5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Team Issue or pull request has been *opened* by a member of Core Team LTS-FIXED-13.4.2 PRO Support Issue was reported by PRO User Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants