Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
Merge 4f3f724 into 21687d5
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Quach committed Mar 15, 2019
2 parents 21687d5 + 4f3f724 commit 747fc82
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Input/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -752,8 +752,8 @@ export class Input extends Component<Props, State> {
{this.getInputMarkup(props)}
{this.getInlineSuffixMarkup()}
{this.getSuffixMarkup()}
{this.getActionMarkup()}
{this.getErrorMarkup()}
{this.getActionMarkup()}
<Backdrop
className="c-Input__backdrop"
disabled={disabled}
Expand Down
6 changes: 6 additions & 0 deletions stories/Input.stories.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react'
import { storiesOf } from '@storybook/react'
import { action } from '@storybook/addon-actions'
import { boolean } from '@storybook/addon-knobs'
import { Button, Flexy, Icon, Input, styled } from '../src/index.js'

const stories = storiesOf('Input', module)
Expand Down Expand Up @@ -246,6 +247,9 @@ const PaddedTextArea = styled('div')`
`

stories.add('Action', () => {
const error = boolean('error', false)
const state = error ? 'error' : null

class Example extends React.Component {
state = {
isDisabled: true,
Expand All @@ -270,6 +274,7 @@ stories.add('Action', () => {
type="text"
onChange={this.onChange}
value={this.state.value}
state={state}
action={
<Button
version={2}
Expand All @@ -291,6 +296,7 @@ stories.add('Action', () => {
onChange={this.onChange}
value={this.state.value}
size="sm"
state={state}
action={
<Button
version={2}
Expand Down

0 comments on commit 747fc82

Please sign in to comment.