Skip to content

[wails V3]--wails-draggable: -drag; select cannot be used #5046

@sugar-is-everythong

Description

@sugar-is-everythong

Description

When the outer element of a select uses the--wails-draggable:drag;parameter, the native select cannot be used. After clicking the select, it automatically collapses. Although this usage shouldn't occur, it is indeed a bug.

To Reproduce

use the CLI to create a simple example and then use the following code.

<div class="container">
  <select style=" --wails-draggable:drag;">
      <option value="">......</option>
      <option value="">......</option>
      <option value="">......</option>
      <option value="">......</option>
  </select>
</div>

Expected behaviour

select should be able to make normal selections

Screenshots

QQ2026312-10497-HD.mp4

Attempted Fixes

wails3 init -n app

System Details

# System

┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
| Name              | Windows 10 IoT Enterprise LTSC 2021                                                                |
| Version           | 2009 (Build: 19044)                                                                                |
| ID                | 21H2                                                                                               |
| Branding          | Windows 10 IoT 企业版 LTSC                                                                         |
| Platform          | windows                                                                                            |
| Architecture      | amd64                                                                                              |
| Go WebView2Loader | true                                                                                               |
| WebView2 Version  | 145.0.3800.97                                                                                      |
| CPU               | Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz                                                            |
| GPU 1             | AMD Radeon HD 8350 (Advanced Micro Devices, Inc.) - Driver: 15.201.1101.1001                       |
| GPU 2             | GameViewer Virtual Display Adapter (GameViewer) - Driver: 17.13.25.697                             |
| GPU 3             | OrayIddDriver Device (Shanghai Best Oray Information Technology Co., Ltd.) - Driver: 17.50.19.949  |
| Memory            | 32GB                                                                                               |
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

# Build Environment

┌────────────────────────────────┐
| Wails CLI    | v3.0.0-alpha.74 |
| Go Version   | go1.25.4        |
| -buildmode   | exe             |
| -compiler    | gc              |
| CGO_CFLAGS   |                 |
| CGO_CPPFLAGS |                 |
| CGO_CXXFLAGS |                 |
| CGO_ENABLED  | 1               |
| CGO_LDFLAGS  |                 |
| GOAMD64      | v1              |
| GOARCH       | amd64           |
| GOOS         | windows         |
└────────────────────────────────┘

# Dependencies

┌──────────────────────────────────────────────────────────────────────────────────────────────┐
| npm                        | 11.4.2                                                          |
| NSIS                       | Not Installed                                                   |
| MakeAppx.exe (Windows SDK) | Not Installed                                                   |
| MSIX Packaging Tool        | Not Installed                                                   |
| SignTool.exe (Windows SDK) | Not Installed                                                   |
| docker                     | *Docker version 28.0.4, build b8034c0 (cross-compilation ready) |
|                                                                                              |
└────────────────────────────────── * - Optional Dependency ───────────────────────────────────┘

# Checking for issues

 SUCCESS  No issues found

# Diagnosis

 SUCCESS  Your system is ready for Wails development!

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingawaiting feedbackMore information is required from the requestor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions