Skip to content

Commit ab1d314

Browse files
committed
[Fix] The calendar is not displayed.
1 parent d7ab148 commit ab1d314

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Input.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const Input: React.FC = () => {
125125
const arrow = arrowContainer?.current;
126126

127127
function showCalendarContainer() {
128-
if (arrow && div && div.classList.contains("hidden") && !readOnly) {
128+
if (arrow && div && div.classList.contains("hidden")) {
129129
div.classList.remove("hidden");
130130
div.classList.add("block");
131131
// window.innerWidth === 767
@@ -160,7 +160,7 @@ const Input: React.FC = () => {
160160
input.removeEventListener("focus", showCalendarContainer);
161161
}
162162
};
163-
}, [calendarContainer, arrowContainer, readOnly]);
163+
}, [calendarContainer, arrowContainer]);
164164

165165
return (
166166
<>

0 commit comments

Comments
 (0)