+
+ Paragraph text with a link.
+
+
+
+
+ Text 1:
+
+
+
+
+ Item with button right
+
+
+
+
+ Text 2:
+
+
+
+
+
+
+ Text 3:
+
+
+
+
+
+ Comments:
+
+
+
+
+
+ Website:
+
+
+
+
+
+ Email:
+
+
+
+
+
+ Feedback:
+
+
+
+
+ More Info:
+
+
+
+
+
+ Score:
+
+
+
+
+
+ First Name:
+
+
+
+
+ Last Name:
+
+
+
+
+ Message:
+
+
+
+
+ Item
+
+
+
+ Item
+
+
+
+
+
+
+
+
diff --git a/ionic/components/text-input/text-input.scss b/ionic/components/text-input/text-input.scss
index e341572096..cb1eac4d56 100644
--- a/ionic/components/text-input/text-input.scss
+++ b/ionic/components/text-input/text-input.scss
@@ -2,9 +2,6 @@
// Text Input
// --------------------------------------------------
-$input-focus-border-color: #51a7e8 !default;
-$input-focus-box-shadow: inset 0px 0px 8px 0px $input-focus-border-color !default;
-
$text-input-background-color: $list-background-color !default;
@@ -37,18 +34,6 @@ ion-input.item {
align-items: flex-start;
}
-.key-input ion-input {
-
- &.has-focus {
- border-color: $input-focus-border-color;
- box-shadow: $input-focus-box-shadow;
- }
-
- :focus {
- outline: none;
- }
-}
-
ion-input [text-input] {
flex: 1;
background-color: $text-input-background-color;
@@ -59,6 +44,13 @@ ion-input.has-focus [text-input] {
pointer-events: auto;
}
+ion-input input[scroll-assist] {
+ display: inline-block;
+ width: 1px;
+ height: 1px;
+ pointer-events: none;
+}
+
ion-input textarea {
padding-top: 9px;
}
@@ -80,4 +72,3 @@ input,
textarea {
@include placeholder();
}
-
diff --git a/ionic/components/text-input/text-input.ts b/ionic/components/text-input/text-input.ts
index baac463615..63cc6cf6c3 100644
--- a/ionic/components/text-input/text-input.ts
+++ b/ionic/components/text-input/text-input.ts
@@ -1,4 +1,4 @@
-import {Directive, Host, Optional, ElementRef, Renderer, Attribute, Query, QueryList, NgZone} from 'angular2/angular2';
+import {Component, Directive, NgIf, forwardRef, Host, Optional, ElementRef, Renderer, Attribute, Query, QueryList, NgZone} from 'angular2/angular2';
import {IonicConfig} from '../../config/config';
import {IonicForm} from '../../util/form';
@@ -12,29 +12,20 @@ import {IonicPlatform} from '../../platform/platform';
/**
* TODO
*/
-@Directive({
+@Component({
selector: 'ion-input',
host: {
- '(focus)': 'receivedFocus(true)',
- '(blur)': 'receivedFocus(false)',
'(touchstart)': 'pointerStart($event)',
'(touchend)': 'pointerEnd($event)',
- '(mouseup)': 'pointerEnd($event)',
- '[class.has-focus]': 'hasFocus',
- '[class.has-value]': 'hasValue'
- }
+ '(mouseup)': 'pointerEnd($event)'
+ },
+ template:
+ '