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

[components] Respect disabled prop on input components and cleanup #286

Merged
merged 2 commits into from
Oct 19, 2017

Conversation

kristofferjs
Copy link
Contributor

  • Removing hasFocus, error etc that is no longer in use (yet)
  • fixing isSelected on searchable select
  • Proper use of :disabled pseudo class where available

…other pros. Removing hasFocus etc that is no longer in use
@@ -31,7 +31,7 @@ export default class DefaultTextInput extends React.PureComponent {
onBlur: PropTypes.func,
isClearable: PropTypes.bool,
isSelected: PropTypes.bool,
isDisabled: PropTypes.bool,
disabled: PropTypes.bool,
Copy link
Member

Choose a reason for hiding this comment

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

Renaming this is a potential breaking change. Have you searched for usages across other files in the repo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Found one use on SlugInput on form-builder. Updated

Copy link
Member

Choose a reason for hiding this comment

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

Thanks!

Copy link
Member

@skogsmaskin skogsmaskin left a comment

Choose a reason for hiding this comment

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

LGTM!

@kristofferjs kristofferjs merged commit d004608 into next Oct 19, 2017
@kristofferjs kristofferjs deleted the cleanup/components-props branch October 19, 2017 11:32
bjoerge pushed a commit that referenced this pull request Oct 19, 2017
)

* [components] Respect disabled prop on input components. Also cleanup other pros. Removing hasFocus etc that is no longer in use

* [form-builder] Disabled on DefaultTextInput instead of isDisabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants