You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add clearOnSameDateSelect prop to basic datepicker.
This prop, if `false`, will prevent the component's state
from resetting if the same date is clicked in succession.
So as to not break previous or expected default behavior,
the default value of this prop is `true`.
* Add storybook entry for the clearOnSameDateClick prop
being equal to `false`.
* Updated README.md to reflect clearOnSameDateClick prop.
| clearable | boolean | no | true | Allows the user to clear the value |
75
-
| format | string | no | 'YYYY-MM-DD' | Specifies how the date will be formatted using the [date-fns' format](https://date-fns.org/v1.29.0/docs/format)|
76
-
| keepOpenOnClear | boolean | no | false | Keeps the datepicker open (or opens it if it's closed) when the clear icon is clicked |
77
-
| keepOpenOnSelect | boolean | no | false | Keeps the datepicker open when a date is selected |
78
-
| locale | object | no |[en-US](https://github.com/arthurdenner/react-semantic-ui-datepickers/blob/master/src/locales/en-US.js)| Object with the labels to be used on the library PS: Feel free to submit PR's with more locales! |
79
-
| onDateChange | function | yes || Callback fired when the value changes |
80
-
| type | string | no | basic | Type of input to render. Available options: 'basic' and 'range' |
81
-
| filterDate | function | no | () => true | Function that receives each date and returns a boolean to indicate whether it is enabled or not |
82
-
| selected | Date, arrayOf(Date) | no || Default date selected |
83
-
| pointing | string | no | 'left' | Location to render the component around input. Available options: 'left', 'right', 'top left', 'top right' |
| clearable | boolean | no | true | Allows the user to clear the value |
75
+
| format | string | no | 'YYYY-MM-DD' | Specifies how the date will be formatted using the [date-fns' format](https://date-fns.org/v1.29.0/docs/format)|
76
+
| keepOpenOnClear | boolean | no | false | Keeps the datepicker open (or opens it if it's closed) when the clear icon is clicked |
77
+
| keepOpenOnSelect | boolean | no | false | Keeps the datepicker open when a date is selected |
78
+
| locale | object | no |[en-US](https://github.com/arthurdenner/react-semantic-ui-datepickers/blob/master/src/locales/en-US.js)| Object with the labels to be used on the library PS: Feel free to submit PR's with more locales! |
79
+
| onDateChange | function | yes || Callback fired when the value changes |
80
+
| type | string | no | basic | Type of input to render. Available options: 'basic' and 'range' |
81
+
| filterDate | function | no | () => true | Function that receives each date and returns a boolean to indicate whether it is enabled or not |
82
+
| selected | Date, arrayOf(Date) | no || Default date selected |
83
+
| pointing | string | no | 'left' | Location to render the component around input. Available options: 'left', 'right', 'top left', 'top right' |
84
+
| clearOnSameDateClick | boolean | no | true | Controls whether the datepicker's state resets if the same date is selected in succession. |
0 commit comments