Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

fix(number-input): fix for React #230

Merged
merged 1 commit into from Dec 16, 2019

Conversation

asudoh
Copy link
Collaborator

@asudoh asudoh commented Dec 16, 2019

This change makes <bx-number-input> code support the Babel plugin that generates its React wrapper, by putting the getters of declared properties before their setters.

This change also ensures that failures in such Babel plugin causes CI error.

My apologies for not catching this earlier @cal-smith 馃檱

This change makes `<bx-number-input>` code support the Babel plugin
that generates its React wrapper, by putting the getters of declared
properties before their setters.

This change also ensures that failures in such Babel plugin causes CI
error.
@asudoh asudoh mentioned this pull request Dec 16, 2019
5 tasks
@netlify
Copy link

netlify bot commented Dec 16, 2019

Deploy preview for carbon-custom-elements ready!

Built with commit 9b2bbaa

https://deploy-preview-230--carbon-custom-elements.netlify.com

Copy link
Contributor

@cal-smith cal-smith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that behaviour is documented, my bad for not realizing the ordering was important 馃槄

@asudoh
Copy link
Collaborator Author

asudoh commented Dec 16, 2019

My apologies again @cal-smith - It isn't documented and the Babel plugin may better handle setter-only declared properties. Just noticed the build error (the Babel plugin threw) when I was doing integration tests of CodeSandbox examples with the latest code.

@asudoh asudoh merged commit d0d7ce7 into carbon-design-system:master Dec 16, 2019
@asudoh asudoh deleted the number-input-react branch December 16, 2019 22:56
asudoh added a commit to asudoh/carbon-custom-elements that referenced this pull request Dec 17, 2019
This change to React wrapper Babel plugin makes it support setter-only
declared properties or one whose setter is defined first.

Refs carbon-design-system#230.
asudoh added a commit that referenced this pull request Jan 6, 2020
This change to React wrapper Babel plugin makes it support setter-only
declared properties or one whose setter is defined first.

Refs #230.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants