Skip to content

Commit 75a70b6

Browse files
committed
Enables clear button when readOnly is true 🎉
1 parent 1440b79 commit 75a70b6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/Input.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ const Input: React.FC<Props> = (e: Props) => {
151151

152152
if (input) {
153153
input.focus();
154-
if (inputText && !readOnly) {
154+
if (inputText) {
155155
changeInputText("");
156156
if (dayHover) {
157157
changeDayHover(null);
@@ -186,7 +186,6 @@ const Input: React.FC<Props> = (e: Props) => {
186186
inputText,
187187
period.end,
188188
period.start,
189-
readOnly,
190189
inputRef
191190
]);
192191

0 commit comments

Comments
 (0)