I'm struggling to figure out how to execute a code snippet for my Angular app on Stack Overflow.
Specifically, I am using mat-autocomplete. When I select a name that is 128 characters long, the cursor appears at the end of the selected string instead of at the beginning. Has anyone else experienced this issue with mat-autocomplete?
https://i.sstatic.net/FtaYD.png
For example, in this StackBlitz demo, I added the letter 'v' to the name 'California'. When I select 'California', the cursor is placed at the end of the string rather than where I would like it to be - at the beginning.
In the source code (located at app > app.component.ts in the provided link), look at the state variable and change the name property to a 128 character long string. Then, when you select an option from the drop-down menu, observe the cursor appearing at the end of the string.