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

Created on 24 Apr 2020  路  4Comments  路  Source: alpinejs/alpine

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>

nb : i am use latest version

bug

Most helpful comment

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! :)

All 4 comments

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! :)

thanks you so much @ryangjchandler

@ryangjchandler worth pinning #401 on the issues page?

@ryangjchandler worth pinning #401 on the issues page?

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

Was this page helpful?
0 / 5 - 0 ratings