We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9ea8f3 commit 6db5fa0Copy full SHA for 6db5fa0
1 file changed
components/lib/calendar/Calendar.js
@@ -100,6 +100,12 @@ export const Calendar = React.memo(
100
return props.dateFormat || localeOption('dateFormat', props.locale);
101
};
102
103
+ const onInputClick = () => {
104
+ if (!visible && props.showOnFocus) {
105
+ show();
106
+ }
107
+ };
108
+
109
const onInputFocus = (event) => {
110
if (ignoreFocusFunctionality.current) {
111
setFocusedState(true);
@@ -4215,6 +4221,7 @@ export const Calendar = React.memo(
4215
4221
autoComplete="off"
4216
4222
placeholder={props.placeholder}
4217
4223
tabIndex={props.tabIndex}
4224
+ onClick={onInputClick}
4218
4225
onInput={onUserInput}
4219
4226
onFocus={onInputFocus}
4220
4227
onBlur={onInputBlur}
0 commit comments