This is caused by #662
As result of mentioned change, TextField is incorrectly setting hasRootSmallInput class when inputSize is set to null. This is happening on following line: https://github.com/react-ui-org/react-ui/blob/master/src/components/TextField/TextField.jsx#L35
Problem is that if inputSize is set to null:
const hasSmallInput = (inputSize !== undefined) && (inputSize <= SMALL_INPUT_SIZE);
Then inputSize is true because of inputSize <= SMALL_INPUT_SIZE => true. Why? Because null <= 10 ...
We need to investigate this and examine all occurrences of !== undefined and !== null as well. This is why I always recommend using != null to cover both cases.
This is caused by #662
As result of mentioned change,
TextFieldis incorrectly settinghasRootSmallInputclass wheninputSizeis set tonull. This is happening on following line: https://github.com/react-ui-org/react-ui/blob/master/src/components/TextField/TextField.jsx#L35Problem is that if
inputSizeis set tonull:Then
inputSizeistruebecause ofinputSize <= SMALL_INPUT_SIZE=>true. Why? Becausenull <= 10...We need to investigate this and examine all occurrences of
!== undefinedand!== nullas well. This is why I always recommend using!= nullto cover both cases.