Memos - Last character of memo text is gone after restarting app (Bug #479)
After saving a memo, closing app and reopening the app and memo. The last character entered in the memo text is gone.
When closing the memo and reopening the memo (without closing the app) the last character is still there. So it seems to have something to do with the closing and reopening of the app and loading the memo.
Seems that oninput could be the issue. As per https://github.com/enyojs/enyo/wiki/Text-Fields
"You can listen for the oninput and onchange DOM events to know when the text inside an Input has been modified. oninput fires immediately, while onchange fires when the text has changed and the input loses focus."
While doing some debugging it seems that oninput takes the input from "before" it was modified instead from "after" it was modified. This causes the last character to drop off.
Changing it to "onchange" sorts it partially, but seems like it causes other issues, because the input needs to "lose focus" before it's triggered. So when you create a new memo and close the app it doesn't get saved.
Seems like we might need enyo.job as per example at:
inputChanged and fireInputChanged look like what we might be after?