Open koppreshk opened 2 years ago
@koppreshk Please tell me the framework and version name. I recently made a related patch, please update it
@koppreshk请告诉我框架和版本名称。我最近做了一个相关的补丁,请更新
"svelte-moveable": "^0.22.1-beta.0",
vite 2.9.12
this same issue
@Soya-xy @koppreshk
Do you mean that it would be desirable to operate as a target of the input Moveable?
https://codesandbox.io/s/magical-mountain-6r5ebf?file=/App.svelte
If draggable is true, it is dragged.
yes it can dragged, but can`t input.
I want input to be input when focus is triggered, or input to be input directly
Hello, is there any progress on this issue? i want can input or select when dragging
@Soya-xy
Use checkInput
prop (true).
@Soya-xy
The select element is not yet a target, but input, textarea, and contenteditable are applicable.
@Soya-xy
moveable's new version is released. Use stopDrag
event property function
<Moveable
target={".target2"}
draggable={true}
onDragStart={e => {
if (["input", "select"].indexOf(e.target.tagName.toLowerCase()) > -1) {
e.stopDrag();
}
}}
onDrag={e => {
e.target.style.cssText += e.cssText;
}}
/>
Thanks!!! I'll give it a try
How to solve the problem in vue version
@Soya-xy
moveable's new version is released. Use
stopDrag
event property function<Moveable target={".target2"} draggable={true} onDragStart={e => { if (["input", "select"].indexOf(e.target.tagName.toLowerCase()) > -1) { e.stopDrag(); } }} onDrag={e => { e.target.style.cssText += e.cssText; }} />
This doesn't work after I apply to vue version, my vue version is 2.0.0-beta.55
@vivoX9
See the Vue code panel
Environments
Description