Dyalog / ewc

Experiments with JavaScript-based GUI
MIT License
0 stars 2 forks source link

Change event passes wrong ⍵ #43

Closed mbaas2 closed 3 weeks ago

mbaas2 commented 3 months ago

According to the help, the argument passed to the callback fn ...is a 3-element vector as follows :

[1] | Object | ref or character vector -- | -- | -- [2] | Event | 'Change' or 36 [3] | Object name | character vector (name of object that is to receive the focus or generate an event)

⍵[⍳2] is ok, but the 3d and following elements contain the new value of the control that lost focus. After entering "abc" in the password field and clicking into "User Code", the onChange fn is called with this argument:

           ⍵
┌──────────────┬──────┬─┬─┬─┐
│F1.∆pP1.B31001│Change│a│b│c│
└──────────────┴──────┴─┴─┴─┘