Skip to content

Commit

Permalink
calc: fix: addressInput combobox doesn't work at start
Browse files Browse the repository at this point in the history
- addressinputfield message is too early before we have component
initialized on client side

Signed-off-by: Rashesh <[email protected]>
Change-Id: I3def3f35150b503a90aae25beed19c01bb8c5b86
  • Loading branch information
Rash419 committed Sep 26, 2024
1 parent a958788 commit 9f5dd73
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions browser/src/control/jsdialog/Util.MessageRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ class JSDialogMessageRouter {

var isNotebookbarInitialized =
app.socket._map.uiManager && app.socket._map.uiManager.notebookbar;
if ((msgData.jsontype === 'notebookbar' && !isNotebookbarInitialized) ||
(msgData.jsontype === 'addressinputfield' && !app.socket._map.formulabar)) {
if (
(msgData.jsontype === 'notebookbar' && !isNotebookbarInitialized) ||
(msgData.jsontype === 'addressinputfield' &&
!app.socket._map.addressInputField)
) {
setTimeout(fireJSDialogEvent, 1000);
return;
} else if (fireJSDialogEvent() === true) {
Expand Down

0 comments on commit 9f5dd73

Please sign in to comment.