Loader UI component gives exception: Illegal JSON for LeafEditor edit event
Summary
The new loader
editor (introduced in !549 (merged)) causes a "Illegal JSON for LeafEditor edit event" exception when it is created on the client side.
Steps to reproduce
import iTasks
import iTasks.Extensions.DateTime
Start w = doTasks task w
where
task =
enterInformation [EnterUsing id (mapEditorWrite ValidEditor loader)] ||-
waitForTimer False 10
The way loader
is used is taken from compute
. I have not been able to recreate this issue with compute
, because compute
seems to always evaluate its argument before showing the loader.
What is the current bug behavior?
An exception is thrown: "Illegal JSON for LeafEditor edit event"
What is the expected correct behavior?
A loader shows for 10 seconds.
Relevant logs, screenshots, ...
N/A
Possible fixes
https://gitlab.com/clean-and-itasks/itasks-sdk/-/blob/1708d4f81e5d648d2f68590e21633c06576e6cd7/Libraries/iTasks/UI/WebPublic/js/itasks-core.js#L473 sends an edit event to the loader.
This was introduced in 8a69ef9a, but like I said compute
seems to be broken anyway. It is not clear to me why an edit event should be be sent at all.
It is also not clear to me why this bug did not appear until !549 (merged) (or somewhere around this time).