adampenn / Angular7-json-schema-form

Angular v7 for Angular2-json-schema-form
MIT License
5 stars 7 forks source link

Cursor goes to end of the field while editing #11

Closed ishaan-puniani closed 5 years ago

ishaan-puniani commented 5 years ago

Focus goes to end of the field while editing template:

Cursor shift the end of the field while editing.

To Reproduce refer: https://stackblitz.com/edit/angular-kdhxup Steps to reproduce the behavior:

  1. Setup the basic form in angular 7
  2. Type anything in the field
  3. Move cursor few characters back (using arrow key).
  4. Type something.
  5. Observe after a keystroke, cursor moved to end of the text.

Expected behavior Cursor should stay where you are editing

Screenshots If applicable, add screenshots to help explain your problem.

angular-kdhxup-StackBlitz

Desktop (please complete the following information):

Log output covering before error and any error statements

Uncaught TypeError: Cannot read property 'endsWith' of undefined at 
ishaan-puniani commented 5 years ago

I got it Solved :)