Opening a folder in a dialog does not work

Hello everyone,

I think there is a bug with dialogs, dialogElem.uxpShowModal() and opening a folder. Has anyone tried this?

Here is a short video:

InDesign App Version 19.2.0
UXP Version 7.3.1
MacOS

After invoking the method localFileSystem.getFolder(), the system dialog is locked, i.e. you can neither select anything nor change its size. I can only close it with ESC.

If I use the method dialogElem.show(), this is what I get. (after some waiting)

Roland

I am now one step further: What I found out is that it works on Windows but not on macOS (12.7.4). Permission is set to fullAccess in the manifest. On macOS it affects all folders.

I have created reduced plug-in for testing.

select_dialog_plugin.ccx (81.7 KB)

Hi @Roland_Dreger,

This is Ramanjulu from Adobe.

It is an issue with InDesign, with the nested Modal Dialog case (the same is not an issue with PS)

When a Modal Dialog is open then, the File Browser / File Explorer window which is another Modal Dialog is shown properly, but
The Mouse Events are not working (the Keyboard Events are still working).

When the parent window is a non-Modal Dialog (Simple Window), then the File Browser / File Explorer window works as expected.

For now, the only way for the users is to, open the parent window as non-Modal Dialog, but not sure why you have an issue with it.

The logs (attached as an image) shared by you are not sufficient enough to understand the issue.

As you have shared a plugin now, will update you on this ASAP

Attaching a gif with the scenario tried.

WebViewDilaog_comp

Thanks,
Ramanjulu.

Hi Ramanjulu,

thanks for the answer and the confirmation. Here is the version with the non-modal dialog: dialogElem.show()

select_dialog_plugin_non-modal.ccx (81.7 KB)

And the log from the UDT log:

VM256 main.js:6622 Plugin created.
VM256 main.js:6631 Panel created
VM256 main.js:6639 Panel set up
VM258 main.js:6622 Plugin created.
VM258 main.js:6631 Panel created
VM258 main.js:6639 Panel set up
VM260 main.js:6622 Plugin created.
VM260 main.js:6631 Panel created
VM260 main.js:6639 Panel set up
​ The dialog was detached from the node without being closed.
_didDetachNode @ uxp://uxp-internal/domjs_scripts.js:2
_didDetachNode @ uxp://uxp-internal/domjs_scripts.js:2
willRemoveNode @ uxp://uxp-internal/domjs_scripts.js:2
willRemoveNode @ uxp://uxp-internal/domjs_scripts.js:2
willRemoveNode @ uxp://uxp-internal/domjs_scripts.js:2
remove @ uxp://uxp-internal/domjs_scripts.js:2
triggerHandler @ VM261 create.js:38
async function (async)
triggerHandler @ VM261 create.js:36
(anonymous) @ VM261 create.js:6
(anonymous) @ uxp://uxp-internal/domjs_scripts.js:2
D @ uxp://uxp-internal/domjs_scripts.js:2
(anonymous) @ uxp://uxp-internal/domjs_scripts.js:2
L @ uxp://uxp-internal/domjs_scripts.js:2
P @ uxp://uxp-internal/domjs_scripts.js:2
e @ uxp://uxp-internal/domjs_scripts.js:2
_retargetAndDispatchNativeEvent @ uxp://uxp-internal/domjs_scripts.js:2
onEvent @ uxp://uxp-internal/domjs_scripts.js:2
./main.js:6622 Plugin created.
./main.js:6631 Panel created
./main.js:6639 Panel set up
​ The dialog was detached from the node without being closed.
_didDetachNode @ uxp://uxp-internal/domjs_scripts.js:2
_didDetachNode @ uxp://uxp-internal/domjs_scripts.js:2
willRemoveNode @ uxp://uxp-internal/domjs_scripts.js:2
willRemoveNode @ uxp://uxp-internal/domjs_scripts.js:2
willRemoveNode @ uxp://uxp-internal/domjs_scripts.js:2
remove @ uxp://uxp-internal/domjs_scripts.js:2
triggerHandler @ /Volumes/InDesign/UXP/Plugins/Test/Folder_Selection_Dummy/pkg/panel/create.js:47
async function (async)
triggerHandler @ /Volumes/InDesign/UXP/Plugins/Test/Folder_Selection_Dummy/pkg/panel/create.js:45
(anonymous) @ /Volumes/InDesign/UXP/Plugins/Test/Folder_Selection_Dummy/pkg/panel/create.js:6
(anonymous) @ uxp://uxp-internal/domjs_scripts.js:2
D @ uxp://uxp-internal/domjs_scripts.js:2
(anonymous) @ uxp://uxp-internal/domjs_scripts.js:2
L @ uxp://uxp-internal/domjs_scripts.js:2
P @ uxp://uxp-internal/domjs_scripts.js:2
e @ uxp://uxp-internal/domjs_scripts.js:2
_retargetAndDispatchNativeEvent @ uxp://uxp-internal/domjs_scripts.js:2
onEvent @ uxp://uxp-internal/domjs_scripts.js:2

The spinning pinwheel appears for about half a minute (macOS, 12.7.4), then an empty dialog appears or like the screenshot above. Shortened video

dialogElem.uxpShow() nothing comes up, neither error message nor dialog.

Roland