Skip to content

Commit db6f4bc

Browse files
committed
fix(input): parent Item is optional
1 parent 329c112 commit db6f4bc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ionic/components/input/input.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class TextInput extends InputBase {
7979
constructor(
8080
config: Config,
8181
form: Form,
82-
item: Item,
82+
@Optional() item: Item,
8383
app: IonicApp,
8484
platform: Platform,
8585
elementRef: ElementRef,
@@ -147,7 +147,7 @@ export class TextArea extends InputBase {
147147
constructor(
148148
config: Config,
149149
form: Form,
150-
item: Item,
150+
@Optional() item: Item,
151151
app: IonicApp,
152152
platform: Platform,
153153
elementRef: ElementRef,

ionic/components/input/test/form-inputs/main.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,8 @@
8585
</ion-item>
8686
</ion-list>
8787

88+
<ion-input placeholder="Stand-alone ion-input"></ion-input>
89+
90+
<ion-input placeholder="Stand-alone textarea"></ion-input>
91+
8892
</ion-content>

0 commit comments

Comments
 (0)