merge release-4.11.10

Release 4.11.10
This commit is contained in:
Liam DeBeasi
2020-01-24 16:54:08 -05:00
committed by GitHub
10 changed files with 27 additions and 19 deletions

View File

@ -1,3 +1,12 @@
## [4.11.10](https://github.com/ionic-team/ionic/compare/v4.11.9...v4.11.10) (2020-01-24)
### Bug Fixes
* **input:** revert previous type change ([db1fd1d](https://github.com/ionic-team/ionic/commit/db1fd1d72a8a0ade824ad2309d1adb2953731f37))
## [4.11.9](https://github.com/ionic-team/ionic/compare/v4.11.8...v4.11.9) (2020-01-23)

View File

@ -1,6 +1,6 @@
{
"name": "@ionic/angular",
"version": "4.11.9",
"version": "4.11.10",
"description": "Angular specific wrappers for @ionic/core",
"keywords": [
"ionic",
@ -49,7 +49,7 @@
"css/"
],
"dependencies": {
"@ionic/core": "4.11.9",
"@ionic/core": "4.11.10",
"tslib": "^1.9.3"
},
"peerDependencies": {

View File

@ -449,7 +449,7 @@ ion-input,prop,size,number | undefined,undefined,false,false
ion-input,prop,spellcheck,boolean,false,false,false
ion-input,prop,step,string | undefined,undefined,false,false
ion-input,prop,type,"date" | "email" | "number" | "password" | "search" | "tel" | "text" | "time" | "url",'text',false,false
ion-input,prop,value,null | number | string | undefined,'',false,false
ion-input,prop,value,null | string | undefined,'',false,false
ion-input,method,getInputElement,getInputElement() => Promise<HTMLInputElement>
ion-input,method,setFocus,setFocus() => Promise<void>
ion-input,event,ionBlur,void,true

View File

@ -1,6 +1,6 @@
{
"name": "@ionic/core",
"version": "4.11.9",
"version": "4.11.10",
"description": "Base components for Ionic",
"keywords": [
"ionic",

View File

@ -1037,7 +1037,7 @@ export namespace Components {
/**
* The value of the input.
*/
'value'?: string | number | null;
'value'?: string | null;
}
interface IonItem {
/**
@ -4576,7 +4576,7 @@ declare namespace LocalJSX {
/**
* The value of the input.
*/
'value'?: string | number | null;
'value'?: string | null;
}
interface IonItem {
/**

View File

@ -169,7 +169,7 @@ export class Input implements ComponentInterface {
/**
* The value of the input.
*/
@Prop({ mutable: true }) value?: string | number | null = '';
@Prop({ mutable: true }) value?: string | null = '';
/**
* Update the native input element when the value changes
@ -177,7 +177,7 @@ export class Input implements ComponentInterface {
@Watch('value')
protected valueChanged() {
this.emitStyle();
this.ionChange.emit({ value: this.value == null ? this.value : this.value.toString() });
this.ionChange.emit({ value: this.value });
}
/**
@ -263,8 +263,7 @@ export class Input implements ComponentInterface {
}
private getValue(): string {
return typeof this.value === 'number' ? this.value.toString() :
(this.value || '').toString();
return this.value || '';
}
private emitStyle() {

View File

@ -238,7 +238,7 @@ export const InputExample: React.FC = () => (
| `spellcheck` | `spellcheck` | If `true`, the element will have its spelling and grammar checked. | `boolean` | `false` |
| `step` | `step` | Works with the min and max attributes to limit the increments at which a value can be set. Possible values are: `"any"` or a positive floating point number. | `string \| undefined` | `undefined` |
| `type` | `type` | The type of control to display. The default type is text. | `"date" \| "email" \| "number" \| "password" \| "search" \| "tel" \| "text" \| "time" \| "url"` | `'text'` |
| `value` | `value` | The value of the input. | `null \| number \| string \| undefined` | `''` |
| `value` | `value` | The value of the input. | `null \| string \| undefined` | `''` |
## Events

View File

@ -1,6 +1,6 @@
{
"name": "@ionic/docs",
"version": "4.11.9",
"version": "4.11.10",
"description": "Pre-packaged API documentation for the Ionic docs.",
"main": "core.json",
"types": "core.d.ts",

View File

@ -1,6 +1,6 @@
{
"name": "@ionic/react-router",
"version": "4.11.9",
"version": "4.11.10",
"description": "React Router wrapper for @ionic/react",
"keywords": [
"ionic",
@ -39,16 +39,16 @@
"tslib": "*"
},
"peerDependencies": {
"@ionic/core": "4.11.9",
"@ionic/react": "4.11.9",
"@ionic/core": "4.11.10",
"@ionic/react": "4.11.10",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-router": "^5.0.1",
"react-router-dom": "^5.0.1"
},
"devDependencies": {
"@ionic/core": "4.11.9",
"@ionic/react": "4.11.9",
"@ionic/core": "4.11.10",
"@ionic/react": "4.11.10",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",

View File

@ -1,6 +1,6 @@
{
"name": "@ionic/react",
"version": "4.11.9",
"version": "4.11.10",
"description": "React specific wrapper for @ionic/core",
"keywords": [
"ionic",
@ -39,7 +39,7 @@
"css/"
],
"dependencies": {
"@ionic/core": "4.11.9",
"@ionic/core": "4.11.10",
"tslib": "*"
},
"peerDependencies": {