MaterialTextField can't set text property
See original GitHub issue🐛 Bug Report
You can’t set the text value of the MaterialTextField, it crashes the APP. This doesn’t happen in the Simulator. Bug happening in iPhone 6S 13.3.1 and with either XF.Material 1.6.0 or 1.5.8
Expected behavior
The text value of the MaterialTextField changes.
Reproduction steps
Created a new blank Xamarin Forms solution. MainPage.xaml
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="clr-namespace:XF.Material.Forms.UI;assembly=XF.Material"
mc:Ignorable="d"
x:Class="App1.MainPage">
<StackLayout>
<!-- Place new controls here -->
<ui:MaterialTextField x:Name="txt1"></ui:MaterialTextField>
</StackLayout>
</ContentPage>
MainPage.xaml.cs
public MainPage()
{
InitializeComponent();
new Thread(new ThreadStart(() =>
{
Thread.Sleep(2000);
txt1.Text = "ofdfk";
}));
}
Configuration
Version: 1.x
Platform:
- 📱 iOS
- 🤖 Android
- 🏁 WPF
- 🌎 UWP
- 🍎 MacOS
- 📺 tvOS
- 🐒 Xamarin.Forms
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
I can't edit Text Field in Material-UI
In this example I used state for storing current text field value. I see, that you use props for that, but the principle...
Read more >Text fields - Material Design
Text fields let users enter, edit, and select text. ... not able to read, you should set a content description via the app:errorContentDescription...
Read more >TextField class - material library - Dart API
A Material Design text field. A text field lets the user enter text, either with hardware keyboard or with an onscreen keyboard. The...
Read more >TextField API - Material UI
The TextField is a convenience wrapper for the most common cases (80%). It cannot be all things to all people, otherwise the API...
Read more >React Text Field component - Material UI
The multiline prop transforms the text field into a TextareaAutosize element. Unless the rows prop is set, the height of the text field...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@pedroreglero can you make a PR with the fix?