0

Does anyone know how to get dropdown fields in DatGrid showing properly? Setting the TextField height doesn't work as expected for me. Example: https://codesandbox.io/s/prod-leftpad-eixec?file=/src/App.js

2 Answers 2

1

Change the value of property box-sizing to inital:

.MuiSelect-select.MuiSelect-select {
  box-sizing: initial;
}

https://codesandbox.io/s/amazing-microservice-ner57?file=/src/styles.css:0-120

Sign up to request clarification or add additional context in comments.

Comments

0

Just add an inputProps like this to your textfield:

      <TextField
        select
        SelectProps={{
          native: true
        }}
        inputProps={{
          style:{height: '100%'}
        }}
        size="small"
      >
        <option>Sel1</option>
        <option>Sel2</option>
      </TextField>

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.