Basically I want to have a JS Object in a UI context that allows communication from JS to Java. When a Dialog is Modal, then appearently those calls are blocked (see above).
And setCloseOnOutsideClick function seems to only be applicable when the dialog is in a modal state? So you canât easily make a dialog non-modal and close it when clicking outside of itâŚ
The only way to make it work seem to be to disable the native vaadin modality of the dialog and emulate the close on exit behavior with a fullscreen transparent overlay that captures all mouse clicks outside the dialog
That is most likely a design flaw. Even if disabled and âdisabled by modalityâ components would need to be separated, there would be plenty of room for more enums in the current parameter for clientcallable. Probably the implementor of the modality curtain didnât know about the parameterâŚ
To be honest, I think it would help if at least there were some log messages when calls were blocked due to the modality curtain. The whole feature is somewhat hidden in the documentation, and I think there should be a clear indication what is happening and how to fix it.
but the modality curtain simply swallows the call, and nothing is executed, even after the modality scenerio resolves. Basically the API breaks its âPromiseâ
Thinking about it from a security point of view (as the server-side modality curtain is a security feature), attempting to call a ClientCallable method which is not available at the current modality level should behave the same as a non-existent method
Depends how itâs implemented, I assume the â$serverâ property calls some getter, if that returned $server object is individual for each modal context, it could work