Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

propagate rest props to TextFieldMui#64

Merged
nicosampler merged 2 commits intodevelopmentfrom
fix-textfield
Sep 11, 2020
Merged

propagate rest props to TextFieldMui#64
nicosampler merged 2 commits intodevelopmentfrom
fix-textfield

Conversation

@nicosampler
Copy link
Contributor

This PR is to propagate ...rest props to TextFieldMui Input.
Particularly I need to pass onPaste event, but this is a generic solution.

@nicosampler nicosampler requested a review from dasanra September 11, 2020 12:44
@nicosampler nicosampler self-assigned this Sep 11, 2020
@github-actions
Copy link

github-actions bot commented Sep 11, 2020

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

@ghost
Copy link

ghost commented Sep 11, 2020

Travis automatic deployment:
https://pr64--safereactcomponents.review.gnosisdev.com

);
}

const { size, ...textFieldMuiProps } = rest;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would not extract the prop but set it as undefined like the return above.

@ghost
Copy link

ghost commented Sep 11, 2020

Travis automatic deployment:
https://pr64--safereactcomponents.review.gnosisdev.com

@nicosampler nicosampler merged commit be51ca5 into development Sep 11, 2020
@nicosampler nicosampler deleted the fix-textfield branch September 11, 2020 13:47
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.

2 participants