@kuroski/v-eager

A directive that emits input events despite the default keyboard on Android, GBoard, does composing by default
1,844 7
vue
Install
npm install @kuroski/v-eager
Latest Version:1.0.1
Vue:2
License:MIT
Last Updated:Apr 26, 2020
Links: GitHub  ·  npm
Maintainer: kuroski

v-eager

Since the default keyboard on Android, GBoard, does composing by default, this directive will always emit the input event even if you are just autocompleting.

This is just a workaround, more information about this problem:

So let's hope this PR (https://github.com/vuejs/vue/pull/9814) will be merged sometime =/

Project setup

npm i -d @kuroski/v-eager
yarn add @kuroski/v-eager

Global

import VEager from '@kuroski/v-eager'
Vue.use(VEager)

Local

import {eager} from '@kuroski/v-eager'
export default {
  directives: {eager}
}

Usage

Just add the directive v-eager in the desired input:

<template>
<v-text-field
    id="name"
    name="name"
    v-model="name"
    v-eager
    label="Nome*"
    required
></v-text-field>
</template>

Related Packages

vue

The progressive JavaScript framework for building modern web UI.

468,054,189 54,906
vue
eslint-plugin-vue

Official ESLint plugin for Vue.js

266,364,830 4,591
@vueuse/shared
260,835,866 22,398
@vitejs/plugin-vue

The official plugin for Vue SFC support in Vite.

257,315,514 686
@vueuse/core

Collection of essential Vue Composition Utilities

256,285,643 22,398

Version History

Version Released Vue License
1.0.1 ^2.6.11 MIT
1.0.0 ^2.6.11 MIT