From 206693d741407d3c271ed2bfaa4c33b9830c77e3 Mon Sep 17 00:00:00 2001 From: Karaggeorge Date: Wed, 28 Jun 2017 11:03:37 -0400 Subject: [PATCH 1/2] Add preventDefauly for tab key --- src/Select.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Select.js b/src/Select.js index 54c6634a21..f59e68d105 100644 --- a/src/Select.js +++ b/src/Select.js @@ -487,6 +487,7 @@ const Select = createClass({ if (event.shiftKey || !this.state.isOpen || !this.props.tabSelectsValue) { return; } + event.preventDefault(); this.selectFocusedOption(); return; case 13: // enter From 4ce8e974bf71e116609ffbe5b4fe038ff0c40e09 Mon Sep 17 00:00:00 2001 From: Karaggeorge Date: Wed, 28 Jun 2017 12:36:44 -0400 Subject: [PATCH 2/2] Add preventDefault on enter key --- src/Select.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Select.js b/src/Select.js index f59e68d105..68d7172658 100644 --- a/src/Select.js +++ b/src/Select.js @@ -492,6 +492,7 @@ const Select = createClass({ return; case 13: // enter if (!this.state.isOpen) return; + event.preventDefault(); event.stopPropagation(); this.selectFocusedOption(); break;