From c33c0ee02293c858692b39df607dc698fce47ff2 Mon Sep 17 00:00:00 2001 From: Mark Sinapilo Date: Mon, 28 Jan 2019 18:18:46 +0800 Subject: [PATCH] Update select-component.md --- packages/select/src/components/select/select-component.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/select/src/components/select/select-component.md b/packages/select/src/components/select/select-component.md index f9d3487522..6896dcfe8c 100644 --- a/packages/select/src/components/select/select-component.md +++ b/packages/select/src/components/select/select-component.md @@ -90,8 +90,7 @@ data sets. `Select`'s `itemRenderer` will be called for each item and receives the item and a props object containing data specific to rendering this item in this frame. The renderer is called for all items, so don't forget to respect -`modifiers.filtered` to hide items that don't match the predicate. Also, don't forget to define a `key` for each item, -or face React's console wrath! +`modifiers.matchesPredicate` to hide items that don't match the predicate. Also, don't forget to define a `key` for each item, or face React's console wrath! ```tsx import { Classes, MenuItem } from "@blueprintjs/core"; @@ -104,7 +103,7 @@ const filterFilm: ItemPredicate = (query, film) => { }; const renderFilm: ItemRenderer = (film, { handleClick, modifiers }) => { - if (!modifiers.filtered) { + if (!modifiers.matchesPredicate) { return null; } return (