(alert:), (confirm:), (prompt:) trigger error when (event:) is active
In a passage where an (event:)
is waiting to happen, (alert:)
, (confirm:)
, and (prompt:)
trigger an error after the user has interacted with the pop-up:
Sorry to interrupt, but this page's code has got itself in a mess.
TypeError: Cannot read property 'blocked' of undefined
TypeError: Cannot read property 'blocked' of undefined
at Object.unblock
at <anonymous>:21:7179
at HTMLElement.<anonymous>
at HTMLElement.dispatch
(This is probably due to a bug in the Harlowe game engine.)
Version: Harlowe 3.1.0.
MWE using (alert:)
:
Trigger an (link-reveal: "alert")[(alert: "Alert text")]. Increment a (set: $counter to 0)(link-reveal: "counter")[(set: $counter to it + 1)]. (event: when $counter > 0)[Incremented.]
To reproduce, click on "alert", then dismiss the alert box. The error above appears in a second alert box, which can then be dismissed.
If you click on "counter" first, thus triggering and clearing the (event:)
, the error does not occur.
Edited by Alex Ball