Skip to content

Commit

Permalink
fix spacing in example text, fix lodash import
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Apr 18, 2018
1 parent f4426ab commit c355fed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src-docs/src/views/combo_box/combo_box_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ export const ComboBoxExample = {
}],
text: (
<p>
<EuiCode>EuiComboBoxList</EuiCode> uses <Link to="https://github.com/bvaughn/react-virtualized">react-virtualized</Link>
to only render visiable options to be super fast no matter how many options there are.
<EuiCode>EuiComboBoxList</EuiCode> uses <Link to="https://github.com/bvaughn/react-virtualized">react-virtualized</Link>{' '}
to only render visible options to be super fast no matter how many options there are.
</p>
),
props: { EuiComboBox },
Expand Down Expand Up @@ -163,8 +163,8 @@ export const ComboBoxExample = {
text: (
<Fragment>
<p>
You can provide a <EuiCode>renderOption</EuiCode> prop which will accept <EuiCode>option</EuiCode>
and <EuiCode>searchValue</EuiCode> arguments. Use the <EuiCode>value</EuiCode> prop of the
You can provide a <EuiCode>renderOption</EuiCode> prop which will accept <EuiCode>option</EuiCode>{' '}
and <EuiCode>searchValue</EuiCode> arguments. Use the <EuiCode>value</EuiCode> prop of the{' '}
<EuiCode>option</EuiCode> object to store metadata about the option for use in this callback.
</p>

Expand Down
4 changes: 2 additions & 2 deletions src/components/combo_box/combo_box.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* from the tab order with tabindex="-1" so that we can control the keyboard navigation interface.
*/

import _ from 'lodash';
import { throttle } from 'lodash';
import React, {
Component,
} from 'react';
Expand Down Expand Up @@ -151,7 +151,7 @@ export class EuiComboBox extends Component {
tabbableItems[comboBoxIndex + amount].focus();
};

incrementActiveOptionIndex = _.throttle(amount => {
incrementActiveOptionIndex = throttle(amount => {
// If there are no options available, reset the focus.
if (!this.matchingOptions.length) {
this.clearActiveOption();
Expand Down

0 comments on commit c355fed

Please sign in to comment.