My goal is to make the input elements fill the entire width they are allotted, but for some reason, they remain at their default size when initially rendered.
I found a workaround by adding the following:
. . .
<input style={{ width: '100%' }}
. . .
However, I thought using flex grow would achieve this automatically.
I also tried using flexBasis: '100%'
instead of flexGrow: 1
, but it didn't make a difference.
I'm not sure what I'm doing wrong here. Do I really have to manually set the width of the input element to get it to change?
Expected output: https://i.sstatic.net/4rz0m.png