From 39ce184079d00f613306e87c43eec29bbfe3d958 Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Tue, 17 Apr 2018 15:17:58 -0400 Subject: [PATCH] Add references between backspaceRemoves and deleteRemoves These are related props, and it is easy to not realize that there are two props to set if you don't want to allow a field to be cleared. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0b94a244e7..a8b02bb8fc 100644 --- a/README.md +++ b/README.md @@ -348,7 +348,7 @@ function onInputKeyDown(event) { | `autoFocus` | boolean | undefined | autofocus the component on mount | | `autoload` | boolean | true | whether to auto-load the default async options set | | `autosize` | boolean | true | If enabled, the input will expand as the length of its value increases | -| `backspaceRemoves` | boolean | true | whether pressing backspace removes the last item when there is no input value | +| `backspaceRemoves` | boolean | true | whether pressing backspace removes the last item when there is no input value (Also see related prop `deleteRemoves`) | | `backspaceToRemoveMessage` | string | 'Press backspace to remove {last label}' | prompt shown in input when at least one option in a multiselect is shown, set to '' to clear | | `className` | string | undefined | className for the outer element | | `clearable` | boolean | true | should it be possible to reset value | @@ -356,7 +356,7 @@ function onInputKeyDown(event) { | `clearRenderer` | function | undefined | Renders a custom clear to be shown in the right-hand side of the select when clearable true: `clearRenderer()` | | `clearValueText` | string | 'Clear value' | title for the "clear" control | | `closeOnSelect` | boolean | true | whether to close the menu when a value is selected -| `deleteRemoves` | boolean | true | whether pressing delete key removes the last item when there is no input value | +| `deleteRemoves` | boolean | true | whether pressing delete key removes the last item when there is no input value. (Also see related prop `backspaceRemoves`) | | `delimiter` | string | ',' | delimiter to use to join multiple values | | `disabled` | boolean | false | whether the Select is disabled or not | | `escapeClearsValue` | boolean | true | whether escape clears the value when the menu is closed |