Skip to content

Commit

Permalink
fix(TextField): Fixes issue with deprecated single line input
Browse files Browse the repository at this point in the history
  • Loading branch information
James Friedman committed Aug 28, 2018
1 parent ee82673 commit 9663311
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/TextField/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@ export class TextField extends withFoundation({
...rest,
disabled: disabled,
elementRef: inputRef,
id: rest['id'] || randomId('text-field')
id: rest['id'] || randomId('text-field'),
// fixes an issue with the deprecated non box input
style:
box === undefined && outlined === undefined ? { marginTop: '3px' } : {}
};

const tag = textarea ? (
Expand Down

0 comments on commit 9663311

Please sign in to comment.