Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
fix(select): add missing tab index default
Browse files Browse the repository at this point in the history
  • Loading branch information
ismay authored and varl committed Nov 25, 2019
1 parent 75555b3 commit 85904e3
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/Select/InputWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ const InputWrapper = ({
)
}

InputWrapper.defaultProps = {
tabIndex: '0',
}

InputWrapper.propTypes = {
children: propTypes.element,
className: propTypes.string,
Expand Down
1 change: 0 additions & 1 deletion stories/MultiSelect.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ const defaultProps = {
onChange: ({ selected }) => {
alert(`Selected changed to: ${JSON.stringify(selected, null, 2)}`)
},
tabIndex: '0',
}

const options = [
Expand Down
1 change: 0 additions & 1 deletion stories/MultiSelectField.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const defaultProps = {
selected: [{ value: '1', label: 'one' }],
onChange: selected =>
alert(`Selected changed to: ${JSON.stringify(selected, null, 2)}`),
tabIndex: '0',
}

const options = [
Expand Down
1 change: 0 additions & 1 deletion stories/SingleSelect.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ const defaultProps = {
onChange: ({ selected }) => {
alert(`Selected changed to: ${JSON.stringify(selected, null, 2)}`)
},
tabIndex: '0',
}

const options = [
Expand Down
1 change: 0 additions & 1 deletion stories/SingleSelectField.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const defaultProps = {
selected: { value: '1', label: 'one' },
onChange: selected =>
alert(`Selected changed to: ${JSON.stringify(selected, null, 2)}`),
tabIndex: '0',
}

const options = [
Expand Down

0 comments on commit 85904e3

Please sign in to comment.