We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 998cbed commit 2370776Copy full SHA for 2370776
2 files changed
.changes/fix-attribute-drag-region.md
@@ -0,0 +1,5 @@
1
+---
2
+"tauri": patch
3
4
+
5
+As some frameworks automatically add "true" as the value of the attribute, we need to check if it exists instead.
core/tauri/scripts/core.js
@@ -190,7 +190,7 @@ if (!String.prototype.startsWith) {
190
// drag region
191
document.addEventListener('mousedown', (e) => {
192
// start dragging if the element has a `tauri-drag-region` data attribute
193
- if (e.target.dataset.tauriDragRegion === '' && e.buttons === 1) {
+ if (e.target.hasAttribute('data-tauri-drag-region') && e.buttons === 1) {
194
window.__TAURI__.invoke('tauri', {
195
__tauriModule: "Window",
196
message: {
0 commit comments