Modal window closed when clicking outside of the window

I have a question on the modal window.

I opened a model window by calling t.modal() in my Power-Up.
When I clicked the mouse button outside the modal window, the modal window was closed.

Is this expected behavior by the specification?

In the following example, clicking the area in blue does not close the modal window. But clicking the area in red closes the modal window.

I expect to keep the model window open until I click the close button explicitly.
Are there other ways to create a model window that does not close on the mouse click?

I would appreciate clarification and suggestions.

:wave: Welcome to the developer community!

Yes, this is the expected behavior. It works similarly to how a card modal opens/closes when you click on a card to view the card back.

This is the only way to open a modal.

1 Like

@bentley Thank you for the clarification !