Jorge Rodríguez
03/24/2023, 5:02 PMBasicTextField with AnnotatedString but when I place the cursor in the component the styles are empty and I just get a plain text. Is there any way to get the AnnotatedString with the styles when a change is made?Halil Ozercan
03/24/2023, 5:23 PMonValueChange triggers for the first time.Jorge Rodríguez
03/24/2023, 5:25 PMJorge Rodríguez
03/24/2023, 5:27 PMAnnotatedString the normal behavior is to get all the styles with the text when value changes. I don’t found the reason why the styles are removed.Halil Ozercan
03/24/2023, 7:53 PMAdam Brown
03/24/2023, 11:19 PMAdam Brown
03/24/2023, 11:23 PMBasicTextField however it is definitely a hack. We store an external copy of all of the styling, and then re-apply the styling after setting the value.Adam Brown
03/24/2023, 11:25 PMonTextChanged type of callback. Currently we just get the whole value againJorge Rodríguez
03/24/2023, 11:29 PMHalil Ozercan
03/25/2023, 4:16 AMJorge Rodríguez
03/25/2023, 6:40 AMJorge Rodríguez
04/26/2023, 9:28 PMAdam Brown
04/26/2023, 9:29 PMBasicTextFieldJorge Rodríguez
04/26/2023, 9:32 PMBasicTextField2 @Halil Ozercan?Halil Ozercan
04/27/2023, 9:57 AMBasicTextField2 but it's in a very rough state for now. You can give it a try to check the new API and get an idea about where it's evolving towards.Jorge Rodríguez
04/27/2023, 4:36 PMBasicTextField2 the same way the BasicText do with placeholders.Adam Brown
04/27/2023, 4:37 PMAdam Brown
05/03/2023, 4:06 AMBasicTextField2 and its looking really good so far! One thing I think would be hard at the moment I think is undo/redo. I think the guts are there maybe with the internal ChangeTracker ? If that is exposed it should be possible I think.Halil Ozercan
05/03/2023, 7:46 AMforEachTextValue or textAsFlow help you keep track of observed values to reset back to? You can even add some kind of debounce to skip intermediate steps during fast typing. Use edit to reset TextFieldState to any value you want.Halil Ozercan
05/03/2023, 8:46 AMZach Klippenstein (he/him) [MOD]
05/04/2023, 12:12 AMAdam Brown
05/04/2023, 12:50 AMAdam Brown
05/04/2023, 12:50 AMJorge Rodríguez
05/04/2023, 1:11 AMAdam Brown
05/04/2023, 1:18 AMZach Klippenstein (he/him) [MOD]
05/04/2023, 2:58 PMAdam Brown
05/05/2023, 5:06 AM