Skip to content

Commit

Permalink
Merge 43c76ad into d925b07
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredBoone committed Apr 17, 2019
2 parents d925b07 + 43c76ad commit ae536d3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ This module is designed to be used with webpack. Below are is a sample of how to
2. `npm test`

## History
* 1.0.6 - Fixes the behavior of the enter key
* 1.0.5 - Prevent tabbing to the toggle switch
* 1.0.4 - Fixes the behavior of the tab key
* 1.0.3 - Fixes the label overlapping the entered filter text on blur.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ship-components-tag-input",
"version": "1.0.5",
"version": "1.0.6",
"description": "Material Design Input and Typeahead for Tags (or \"Chips\" in Material Design speak)",
"main": "src/index.js",
"scripts": {
Expand Down
5 changes: 4 additions & 1 deletion src/TagContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,10 @@ export default class TagContainer extends React.Component {
this.props.onEnterKey(event);
break;
}
// Commented this out to fix the behavior of the tab key.
event.preventDefault();
this.selectHighlightedItem(event);
break;
// Commented this out to fix the behavior of the tab key.
// The tab keyboard event was being used to select a highlighted dropdown option.
// This prevented tabbing through components in a modal form dialog.
// With this change tag - input will ignore tab keyboard events.
Expand Down

0 comments on commit ae536d3

Please sign in to comment.