material-components-ios icon indicating copy to clipboard operation
material-components-ios copied to clipboard

[TextFields] MDCTextInputControllerOutlined - unable to set isFloatingEnabled to false

Open material-mirror opened this issue 6 years ago • 4 comments

This was filed as an internal issue. If you are a Googler, please visit b/138846474 for more details.


Internal data

material-mirror avatar Aug 02 '19 18:08 material-mirror

Any Solution for this problem?

Edsongui avatar Oct 04 '19 17:10 Edsongui

Any update on this bug or possible workaround?

lane-faison avatar Jul 09 '20 00:07 lane-faison

Hi, I recommend you try using our newer text field offering, MDCOutlinedTextField. To use it add MaterialComponents/TextControls+OutlinedTextFields and/or MaterialComponents/TextControls+OutlinedTextFieldsTheming to your podfile. Hope this helps!

andrewoverton avatar Jul 09 '20 14:07 andrewoverton

There are two ways to avoid floating label behavior in the new text fields. One is to set the labelBehavior to .disappears, and the other is to just not have any label text.

andrewoverton avatar Jul 09 '20 14:07 andrewoverton