profile
viewpoint

Ask questionsv-model on mobile not updating until a space is pressed

Version

2.5.16

Reproduction link

https://jsfiddle.net/yyx990803/xkkbfL3L/?utm_source=website&utm_medium=embed&utm_campaign=xkkbfL3L

Steps to reproduce

https://www.youtube.com/watch?v=y8CASLitwdw

  1. Type into input/textarea with Android (don't have iOS to test with)

What is expected?

Input data should be updated per keypress

What is actually happening?

Input data is only updated after a space is pressed


Reproduced on Android 7.1 Chrome 66 and Android 4.4.2 Firefox 60

<!-- generated by vue-issues. DO NOT REMOVE -->

vuejs/vue

Answer questions kasperkamperman

For me, this was easier than using a directive:

Instead of:

v-model="searchQuary"

do:

:value="searchQuery"
@input="e => searchQuery = e.target.value"
useful!

Related questions

[Vue warn]: Error in nextTick: "RangeError: Maximum call stack size exceeded" while navigating to another route hot 1
关于keep-alive缓存页面问题请教 hot 1
Can not clear slot content with vue@2.5.3 hot 1
TypeError: Cannot read property 'toLowerCase' of undefined at emptyNodeAt hot 1
VNode.componentInstance is undefined when rendered by a functional component hot 1
Korean input trigger keydown event twice hot 1
Proposal: Template inheritance using the slots mechanism hot 1
Memory leak when using "transition" and "keep-alive" hot 1
Error in v-on handler: "RangeError: Maximum call stack size exceeded" hot 1
如何通过v-bind:style动态生成背景图? hot 1
如何通过v-bind:style动态生成背景图? hot 1
IE11, console print: [Vue warn]: Error in nextTick: "Error: Invalid argument." But work well with chrome hot 1
v-bind:style 'background-image' error: url is not a function hot 1
force re-computation of a computed property hot 1
There is no a attribute like react's $$typeof to prevent XSS injection in the vnode of Vue. hot 1
Github User Rank List