Comments (3)
No problem, I do like your package so a fix would be nice :)
The way I see it, the check to see if v-model
change is done programatically or by the user, do not need the userInteraction
. Checking if the element this.anElement
is in sync with newValue
will provide the same result. If they are in sync it means the user provided the input. If they are not in sync, the change happend programatically.
Relying on touch events to set userInteraction
could be an option, but I've had no luck with that approach. Handling of touch events is done very differently a cross devices.
I look forward to see your solution. Let me know if I could be at help testing it.
from vue-autonumeric.
Thank you for reporting this.
I'll check that tomorrow, but from the top of my head, userInteraction
is needed in order to detect if a v-model
change is done programatically, so this shouldn't be removed otherwise it's probable there will be a loss in functionality.
The easiest fix would be to add the touch*
events handlers. I'll see later!
from vue-autonumeric.
Thank you again for your proposition @markRosenvinge, it works great and it's much simpler that way :)
It's now live in v1.2.2
.
Please try on Android and report here if there are still any problems!
from vue-autonumeric.
Related Issues (20)
- Add an ability to globally set the default options HOT 1
- Inherit events from component wrapper HOT 2
- Add TypeScript file definition HOT 4
- Directive usage HOT 3
- VueAutonumeric value prop validator should accept strings HOT 1
- Problem when importing `vue-autonumeric`, but not when importing `AutoNumeric` HOT 6
- Ignoring the .lazy modifier HOT 9
- Android cursor issue HOT 2
- Library naming issue HOT 3
- Add support for Nuxt HOT 1
- Set value to zero after null HOT 1
- Error while npm run development HOT 1
- The event passed as a parameter is not a valid wheel event, 'wheel' given. HOT 8
- How to remove keep in memory? HOT 1
- Vue 3.0 compatibility HOT 7
- Trying to edit a value sets the caret to the end of the input HOT 6
- References to autonumeric need to be updated HOT 9
- Support for numeric keyboard via input[type=number]?
- Change event doesn't work HOT 1
- V-model not readable by the autonumeric HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-autonumeric.