mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-15 22:06:36 +00:00
Toolkit: add override for Ext.dd.DragDropManager
to fix selection behavior for Ext.dd.DragZone. Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
2396874180
commit
64e7c5371b
@ -686,6 +686,22 @@ Ext.define('Proxmox.view.DragZone', {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Fix text selection on drag when using DragZone,
|
||||||
|
// see https://forum.sencha.com/forum/showthread.php?335100
|
||||||
|
Ext.define('Proxmox.dd.DragDropManager', {
|
||||||
|
override: 'Ext.dd.DragDropManager',
|
||||||
|
|
||||||
|
stopEvent: function(e) {
|
||||||
|
if (this.stopPropagation) {
|
||||||
|
e.stopPropagation();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (this.preventDefault) {
|
||||||
|
e.preventDefault();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
// force alert boxes to be rendered with an Error Icon
|
// force alert boxes to be rendered with an Error Icon
|
||||||
// since Ext.Msg is an object and not a prototype, we need to override it
|
// since Ext.Msg is an object and not a prototype, we need to override it
|
||||||
// after the framework has been initiated
|
// after the framework has been initiated
|
||||||
|
Loading…
Reference in New Issue
Block a user