We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7ab148 commit ab1d314Copy full SHA for ab1d314
src/components/Input.tsx
@@ -125,7 +125,7 @@ const Input: React.FC = () => {
125
const arrow = arrowContainer?.current;
126
127
function showCalendarContainer() {
128
- if (arrow && div && div.classList.contains("hidden") && !readOnly) {
+ if (arrow && div && div.classList.contains("hidden")) {
129
div.classList.remove("hidden");
130
div.classList.add("block");
131
// window.innerWidth === 767
@@ -160,7 +160,7 @@ const Input: React.FC = () => {
160
input.removeEventListener("focus", showCalendarContainer);
161
}
162
};
163
- }, [calendarContainer, arrowContainer, readOnly]);
+ }, [calendarContainer, arrowContainer]);
164
165
return (
166
<>
0 commit comments