Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

输入框无法使用鼠标拖拽连选文本 #198

Open
zhusaidong opened this issue Sep 27, 2024 · 3 comments
Open

输入框无法使用鼠标拖拽连选文本 #198

zhusaidong opened this issue Sep 27, 2024 · 3 comments

Comments

@zhusaidong
Copy link

zhusaidong commented Sep 27, 2024

官方给的demo中有个type=checkbox的input,如果将input的type改成text,让它变成输入框
image

就会发现输入框无法使用鼠标拖拽连选其中的文本了。
image

我的项目就遇到了这个问题。目前的解决方法绕了一圈,是在编辑模式时,将handle设置成不存在的元素。让拖拽失效。

@Alfred-Skyblue
Copy link
Owner

将 handle 设置成可以拖拽的元素

@zhusaidong
Copy link
Author

zhusaidong commented Nov 15, 2024

?就是设置了可以拖拽的元素才冲突的啊
就是input-text里面的文本本身就是能拖拽选择的,和插件冲突了

@Alfred-Skyblue
Copy link
Owner

你加一个元素然后让你加的那个元素设置为handle就可以了啊,拖拽的时候是会阻止文本选中的,如果一个元素可以拖拽,那他就是不可被选中的,要不然拖拽的时候,怎么知道你要拖拽还是要选中呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants