You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm playing around with kaibu widgets in the context of a collaborative annotation tool and I'm loving it!
Also I stumbled upon what might be a bug: It seems that when having several elements as part of the same widget, elements can call the callbacks of other elements.
and pressing the button "Say Hello", no alert is shown. Instead, the java console reports the following, which suggests that select_mode was called instead of say_hello:
Error: Error: Traceback (most recent call last):
^^^^^^^^^^^^^^^^^^^^^^^
TypeError: ImJoyPlugin.run.<locals>.select_mode() missing 1 required positional argument: 'mode'
at c._decode (rpc.js:787:19)
at c._decode (rpc.js:831:35)
at c._unwrap (rpc.js:863:23)
at rpc.js:260:29
at Connection._fire (utils.js:334:11)
at Connection.handleEvent (pluginIframe.js:64:14)
I'm getting the same problem in other contexts. A workaround that works for me consists in placing buttons in separate widgets.
Thanks!
The text was updated successfully, but these errors were encountered:
Coming back to this issue, I found that assigning _rintf=False removed the specificity problem. Debugging this a bit further I found that assigning different _rintf to the different elements leads to the expected behaviour.
Maybe sth goes wrong during encoding or decoding of the remote functions, e.g. functions are serialised identically?
I'm playing around with kaibu widgets in the context of a collaborative annotation tool and I'm loving it!
Also I stumbled upon what might be a bug: It seems that when having several elements as part of the same widget, elements can call the callbacks of other elements.
For example, when taking this example code from https://kaibu.org/docs/#/api?id=add_widgetoptions:
and pressing the button "Say Hello", no alert is shown. Instead, the java console reports the following, which suggests that
select_mode
was called instead ofsay_hello
:I'm getting the same problem in other contexts. A workaround that works for me consists in placing buttons in separate widgets.
Thanks!
The text was updated successfully, but these errors were encountered: