Skip to content

Dialog window doesn't take focus #1876

@ghost

Description

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions