mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(input): parent Item is optional
This commit is contained in:
@@ -79,7 +79,7 @@ export class TextInput extends InputBase {
|
||||
constructor(
|
||||
config: Config,
|
||||
form: Form,
|
||||
item: Item,
|
||||
@Optional() item: Item,
|
||||
app: IonicApp,
|
||||
platform: Platform,
|
||||
elementRef: ElementRef,
|
||||
@@ -147,7 +147,7 @@ export class TextArea extends InputBase {
|
||||
constructor(
|
||||
config: Config,
|
||||
form: Form,
|
||||
item: Item,
|
||||
@Optional() item: Item,
|
||||
app: IonicApp,
|
||||
platform: Platform,
|
||||
elementRef: ElementRef,
|
||||
|
||||
@@ -85,4 +85,8 @@
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
|
||||
<ion-input placeholder="Stand-alone ion-input"></ion-input>
|
||||
|
||||
<ion-input placeholder="Stand-alone textarea"></ion-input>
|
||||
|
||||
</ion-content>
|
||||
|
||||
Reference in New Issue
Block a user