diff --git a/CHANGELOG.md b/CHANGELOG.md index 75b6aff464..d11ff1fa7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/angular/package.json b/angular/package.json index ed6882ceb5..38fd8c2abf 100644 --- a/angular/package.json +++ b/angular/package.json @@ -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": { diff --git a/core/api.txt b/core/api.txt index 0493a63e60..e35a256247 100644 --- a/core/api.txt +++ b/core/api.txt @@ -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 ion-input,method,setFocus,setFocus() => Promise ion-input,event,ionBlur,void,true diff --git a/core/package.json b/core/package.json index cd834b0bef..c4ec08645e 100644 --- a/core/package.json +++ b/core/package.json @@ -1,6 +1,6 @@ { "name": "@ionic/core", - "version": "4.11.9", + "version": "4.11.10", "description": "Base components for Ionic", "keywords": [ "ionic", diff --git a/core/src/components.d.ts b/core/src/components.d.ts index 07e4af7c5f..7df5c4f408 100644 --- a/core/src/components.d.ts +++ b/core/src/components.d.ts @@ -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 { /** diff --git a/core/src/components/input/input.tsx b/core/src/components/input/input.tsx index b6f9abc869..c498e120ab 100644 --- a/core/src/components/input/input.tsx +++ b/core/src/components/input/input.tsx @@ -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() { diff --git a/core/src/components/input/readme.md b/core/src/components/input/readme.md index a65f9b2154..133d344a08 100644 --- a/core/src/components/input/readme.md +++ b/core/src/components/input/readme.md @@ -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 diff --git a/docs/package.json b/docs/package.json index 8794a1f684..4dbe2d0fc3 100644 --- a/docs/package.json +++ b/docs/package.json @@ -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", diff --git a/packages/react-router/package.json b/packages/react-router/package.json index 742da28429..2927a0d7c5 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -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", diff --git a/packages/react/package.json b/packages/react/package.json index 8cbd06fc54..2bd28a9cc4 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -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": {