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

[Question] : Error Selection when uses type="number"> #415

Closed
adinata-id opened this issue Apr 24, 2020 · 4 comments
Closed

[Question] : Error Selection when uses type="number"> #415

adinata-id opened this issue Apr 24, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@adinata-id
Copy link

i got error when use input type="number"

error message : Uncaught DOMException: Failed to execute 'setSelectionRange' on 'HTMLInputElement': The input element's type ('number') does not support selection.

my code :

<div x-data="form()">
    <input type="number" class="form-control" name="price"  x-model="price">
</div>
<script> function form() { return { price : 0 } } </script>

nb : i am use latest version

@ryangjchandler
Copy link
Contributor

Hi @adinata-id , a regression was report in v2.3.0. A fix has been submitted at #403 and discussion on #401. In the meantime, please use v2.2.x

If you've got anymore questions, please commentt on #401. Thanks! :)

@ryangjchandler ryangjchandler added the bug Something isn't working label Apr 24, 2020
@adinata-id
Copy link
Author

thanks you so much @ryangjchandler

@HugoDF
Copy link
Contributor

HugoDF commented Apr 24, 2020

@ryangjchandler worth pinning #401 on the issues page?

@ryangjchandler
Copy link
Contributor

@ryangjchandler worth pinning #401 on the issues page?

Yeah, I'm not sure we've got permissions to do so.

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

No branches or pull requests

3 participants