diff --git a/ts/IconToggle/index.tsx b/ts/IconToggle/index.tsx
index 9ce5a3615..11297753d 100644
--- a/ts/IconToggle/index.tsx
+++ b/ts/IconToggle/index.tsx
@@ -3,15 +3,15 @@ import {bind} from 'bind-decorator';
import {h} from 'preact';
import MaterialComponent from '../Base/MaterialComponent';
-interface IconToggleData {
+interface IIconToggleData {
label?: string;
content?: string;
cssClass?: string;
}
export interface IIconToggleProps {
- 'data-toggle-on'?: IconToggleData; // TODO: wrong docs?
- 'data-toggle-off'?: IconToggleData; // TODO: wrong docs?
+ 'data-toggle-on'?: IIconToggleData; // TODO: wrong docs?
+ 'data-toggle-off'?: IIconToggleData; // TODO: wrong docs?
disabled?: boolean;
}
diff --git a/ts/TextField/index.tsx b/ts/TextField/index.tsx
index bb3c1eb32..b2ef3c11a 100644
--- a/ts/TextField/index.tsx
+++ b/ts/TextField/index.tsx
@@ -168,16 +168,15 @@ export class TextFieldInput extends MaterialComponent<
this.state.jsComponentAttached
? undefined
: props.label + this.props.required
- ? '*'
- : ''
+ ? '*'
+ : ''
}
{...props}
/>
)}
- {props.label &&
- this.state.jsComponentAttached && (
-
- )}
+ {props.label && this.state.jsComponentAttached && (
+
+ )}
{props.trailingIcon ? (
{props.trailingIcon}
) : null}