2016-06-14 21:23:40 -04:00
|
|
|
{
|
|
|
|
"name": "@angular/forms",
|
|
|
|
"version": "0.0.0-PLACEHOLDER",
|
2016-09-14 19:44:39 -04:00
|
|
|
"description": "Angular - directives and services for creating forms",
|
2017-01-27 20:39:48 -05:00
|
|
|
"main": "./bundles/forms.umd.js",
|
2018-03-15 17:13:13 -04:00
|
|
|
"module": "./fesm5/forms.js",
|
|
|
|
"es2015": "./fesm2015/forms.js",
|
|
|
|
"esm5": "./esm5/forms.js",
|
|
|
|
"esm2015": "./esm2015/forms.js",
|
|
|
|
"fesm5": "./fesm5/forms.js",
|
|
|
|
"fesm2015": "./fesm2015/forms.js",
|
2017-09-13 19:20:29 -04:00
|
|
|
"typings": "./forms.d.ts",
|
2016-06-14 21:23:40 -04:00
|
|
|
"author": "angular",
|
|
|
|
"license": "MIT",
|
2017-05-23 16:01:39 -04:00
|
|
|
"dependencies": {
|
2018-03-08 18:47:04 -05:00
|
|
|
"tslib": "^1.9.0"
|
2017-05-23 16:01:39 -04:00
|
|
|
},
|
2016-06-14 21:23:40 -04:00
|
|
|
"peerDependencies": {
|
2018-03-21 01:38:15 -04:00
|
|
|
"rxjs": "^5.6.0-forward-compat.0 || ^6.0.0-beta.0",
|
2016-06-14 21:23:40 -04:00
|
|
|
"@angular/core": "0.0.0-PLACEHOLDER",
|
fix(forms): make composition event buffering configurable (#15256)
This commit fixes a regression where `ngModel` no longer syncs
letter by letter on Android devices, and instead syncs at the
end of every word. This broke when we introduced buffering of
IME events so IMEs like Pinyin keyboards or Katakana keyboards
wouldn't display composition strings. Unfortunately, iOS devices
and Android devices have opposite event behavior. Whereas iOS
devices fire composition events for IME keyboards only, Android
fires composition events for Latin-language keyboards. For
this reason, languages like English don't work as expected on
Android if we always buffer. So to support both platforms,
composition string buffering will only be turned on by default
for non-Android devices.
However, we have also added a `COMPOSITION_BUFFER_MODE` token
to make this configurable by the application. In some cases, apps
might might still want to receive intermediate values. For example,
some inputs begin searching based on Latin letters before a
character selection is made.
As a provider, this is fairly flexible. If you want to turn
composition buffering off, simply provide the token at the top
level:
```ts
providers: [
{provide: COMPOSITION_BUFFER_MODE, useValue: false}
]
```
Or, if you want to change the mode based on locale or platform,
you can use a factory:
```ts
import {shouldUseBuffering} from 'my/lib';
....
providers: [
{provide: COMPOSITION_BUFFER_MODE, useFactory: shouldUseBuffering}
]
```
Closes #15079.
PR Close #15256
2017-03-20 20:38:33 -04:00
|
|
|
"@angular/common": "0.0.0-PLACEHOLDER",
|
|
|
|
"@angular/platform-browser": "0.0.0-PLACEHOLDER"
|
2016-06-14 21:23:40 -04:00
|
|
|
},
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
|
|
|
"url": "https://github.com/angular/angular.git"
|
2018-02-27 18:04:35 -05:00
|
|
|
},
|
|
|
|
"ng-update": {
|
|
|
|
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
|
2018-03-14 21:30:18 -04:00
|
|
|
},
|
|
|
|
"sideEffects": false
|
2016-06-14 21:23:40 -04:00
|
|
|
}
|