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

[core] fix(NumericInput): more robust controlled mode #4211

Merged
merged 4 commits into from
Jul 7, 2020

Conversation

adidahiya
Copy link
Contributor

@adidahiya adidahiya commented Jul 7, 2020

Fixes #2186, fixes #3553

Checklist

  • Includes tests
    • need some more tests for the new controlled functionality and defaultValue prop
  • Update documentation

Changes proposed in this pull request:

  • Refactor NumericInput component's controlled mode to no longer change state.value
  • New defaultValue prop behaves as you would expect for a controlled component

Reviewers should focus on:

if there are enough unit tests

@blueprint-bot
Copy link

un-skip test suites

Previews: documentation | landing | table

@adidahiya
Copy link
Contributor Author

fyi @benjaminbours @tnrich

…ontrolled

# Conflicts:
#	packages/core/test/controls/numericInputTests.tsx
@blueprint-bot
Copy link

fix & test defaultValue behavior

Previews: documentation | landing | table

@adidahiya adidahiya merged commit ff99625 into develop Jul 7, 2020
@adidahiya adidahiya deleted the ad/numeric-input-controlled branch July 7, 2020 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants