This library is awesome and all, done pretty much most of the heavy lifting I wasted work hours on. But it has a small problem
Problem statement
When reformatting the value, if I add characters to the new value as in:
...
format={v => v + 'abcd'};
...
The cursor would stand where I would normally be without the newly added characters, not at the end of the new string.
Problem reproduced
https://codesandbox.io/s/istarkovrifm-cursor-index-bug-p9mjr
Versions
node: v11.14.0
npm: 6.9.2
rifm: ^0.9.1
This library is awesome and all, done pretty much most of the heavy lifting I wasted work hours on. But it has a small problem
Problem statement
When reformatting the value, if I add characters to the new value as in:
The cursor would stand where I would normally be without the newly added characters, not at the end of the new string.
Problem reproduced
https://codesandbox.io/s/istarkovrifm-cursor-index-bug-p9mjr
Versions
node: v11.14.0
npm: 6.9.2
rifm: ^0.9.1