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
Fix full width TextInput in Filter bug #5663
base: 3.x
Are you sure you want to change the base?
Fix full width TextInput in Filter bug #5663
Conversation
@@ -12,7 +12,7 @@ import TextInput from './TextInput'; | |||
const useStyles = makeStyles( | |||
{ | |||
input: { | |||
marginTop: 32, | |||
// marginTop: 32, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you comment this? Does not seem related to the issue. Besides, we don't keep commented out code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i removed this unrelated code changes now in latest commit
alignItems: 'center', | ||
flexGrow: 1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? Does not seem related to the issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i removed this unrelated code changes now in latest commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, it's still there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed alignItems:center
property which was not related to this issue but flexGrow:1
is something which helped in fixing bug.
filterFormInput
has a parent wrapper form
tag in filterForm
component and by applying style flexGrow:1
to form ,div
tag (inside filterFormInput
which is parent of filter text input) style width=100%
property is effective and because of parent div
can now take full-width,search text input could take up width=100%
as well
What bug are you trying to solve? |
Nevermind, I didn't see that you referenced an issue in the title. The GitHub convention is to reference it in the description (I edited yours to match that convention) |
@djhi @fzaninotto can you look into this pr |
You didn't answer @djhi's comment (see earlier in these PR comments). |
@fzaninotto i already removed unrelated code changes @djhi pointed |
@djhi @fzaninotto what needs to happen with this PR to get it merged? |
I find the result surprising: const commentFilters = [
<SearchInput source="q" alwaysOn />,
<ReferenceInput source="post_id" reference="posts" fullWidth={true}>
<SelectInput optionText="title" />
</ReferenceInput>,
]; I'd expect otherwise:
So I'm not sure the fix is correct. |
Closes #4579