diff --git a/packages/components/src/custom-select-control/index.js b/packages/components/src/custom-select-control/index.js index 0d49c08e4de137..aa73eb083fbbdd 100644 --- a/packages/components/src/custom-select-control/index.js +++ b/packages/components/src/custom-select-control/index.js @@ -7,7 +7,9 @@ import classnames from 'classnames'; /** * Internal dependencies */ -import { Button, Dashicon } from '../'; +import Button from '../button'; +import Dashicon from '../dashicon'; +import List from '../list'; const itemToString = ( item ) => item && item.name; // This is needed so that in Windows, where @@ -107,7 +109,7 @@ export default function CustomSelectControl( { className="components-custom-select-control__button-icon" /> - + ); } diff --git a/packages/components/src/form-token-field/suggestions-list.js b/packages/components/src/form-token-field/suggestions-list.js index 2d7e64f84be7d0..f23430e039352c 100644 --- a/packages/components/src/form-token-field/suggestions-list.js +++ b/packages/components/src/form-token-field/suggestions-list.js @@ -11,6 +11,11 @@ import classnames from 'classnames'; import { Component } from '@wordpress/element'; import { withSafeTimeout } from '@wordpress/compose'; +/** + * Internal dependencies + */ +import List from '../list'; + class SuggestionsList extends Component { constructor() { super( ...arguments ); @@ -73,12 +78,8 @@ class SuggestionsList extends Component { } render() { - // We set `tabIndex` here because otherwise Firefox sets focus on this - // div when tabbing off of the input in `TokenField` -- not really sure - // why, since usually a div isn't focusable by default - // TODO does this still apply now that it's a