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

Input box failed to get focus #110

Closed
MrHzq opened this issue Dec 4, 2019 · 5 comments
Closed

Input box failed to get focus #110

MrHzq opened this issue Dec 4, 2019 · 5 comments
Labels
bug Something isn't working complete question Further information is requested
Milestone

Comments

@MrHzq
Copy link

MrHzq commented Dec 4, 2019

Input box failed to get focus

When using the input box, clicking the input box will not activate

image

@daybrush
Copy link
Owner

daybrush commented Dec 4, 2019

@MrHzq

Try below:

moveable.on("dragStart", e => {
   if (e.inputEvent.target === inputBox) {
       return false;
   }
});

@daybrush daybrush added the question Further information is requested label Dec 4, 2019
@MrHzq
Copy link
Author

MrHzq commented Dec 5, 2019

no effect
image

@daybrush daybrush added the bug Something isn't working label Dec 6, 2019
daybrush added a commit that referenced this issue Dec 6, 2019
@daybrush daybrush added this to the 0.13.0 milestone Dec 10, 2019
@daybrush
Copy link
Owner

@MrHzq

Moveable is updated. Check it again.

  • moveable 0.13.0
  • react-moveable 0.16.1
  • preact-moveable 0.15.0
  • ngx-moveable 0.9.0
  • svelte-movable 0.4.0

@MrHzq
Copy link
Author

MrHzq commented Dec 12, 2019

Thank you first

But It still doesn't work. I use it like this

Through this website, only <span> is replaced with <input>

image

Is it because of my wrong way of using?
How to use it correctly?
Thank

@daybrush
Copy link
Owner

@MrHzq
I'm sorry. I was mistaken.

moveable 0.13.1 is released. Check it below:

moveable.on("dragStart", e => {
    e.stop();
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working complete question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants