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

[RFR] Fix AutocompleteInput #4055

Merged
merged 2 commits into from
Nov 27, 2019
Merged

[RFR] Fix AutocompleteInput #4055

merged 2 commits into from
Nov 27, 2019

Conversation

djhi
Copy link
Contributor

@djhi djhi commented Nov 27, 2019

Fixes #4040

Many classes weren't used at all so I removed them.

Besides, while testing this on the simple example, I noticed that SimpleFormIterator was adding a div because of the TransitionGroup. This div was inserted as the child of ul which breaks semantics and accessibility

image

@djhi djhi added this to the 3.0.2 milestone Nov 27, 2019
@@ -328,13 +332,6 @@ const AutocompleteInput: FunctionComponent<
name={input.name}
InputProps={{
inputRef: storeInputRef,
classes: {
root: classNames(classes.inputRoot, {
Copy link
Member

Choose a reason for hiding this comment

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

this was used to support both filled and standard variants. I'm afraid this change breaks that. Can you make sure the form displays correctly with <SimpleForm variant="standard">?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Confirmed. It works by setting the variant on SimpleForm

@fzaninotto fzaninotto merged commit 77e9eef into master Nov 27, 2019
@fzaninotto fzaninotto deleted the fix-autocomplete-input branch November 27, 2019 13:24
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.

Default width for AutocompleteInput is different from the rest of the inputs
2 participants