Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dialog window doesn't take focus #1876

Closed
Zettexe opened this issue May 20, 2021 · 3 comments
Closed

Dialog window doesn't take focus #1876

Zettexe opened this issue May 20, 2021 · 3 comments

Comments

@Zettexe
Copy link

Zettexe commented May 20, 2021

Describe the bug
If I open a dialog it moves freely and the main window doesn't get blocked in any way.

To Reproduce
Steps to reproduce the behavior:

  1. Open a Dialog

Expected behavior
The dialog should prevent access to the main window while open

Platform and Versions (please complete the following information):

OS: Windows, version 10.0.19042 X64
Node: 14.15.4
NPM: 6.14.10
Yarn: 1.22.10
Rustc: 1.51.0

Minimal Example
Using Svelte

<script>
  import { open } from "@tauri-apps/api/dialog";
</script>

<button on:click={() => open()}>Test</button>
@lucasfernog
Copy link
Member

Will be fixed when (and if) PolyMeilex/rfd#14 is merged and published.

@Zettexe
Copy link
Author

Zettexe commented May 20, 2021

Out of curiosity, there is also a bug where the dialog window spawns below all other windows most of the time. Would this be fixed as well with this change?

@lucasfernog
Copy link
Member

I hope it will, since we'll set the tauri window as parent of the dialog, I think Windows will handle that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants