Skip to content

Commit

Permalink
Hide input in story
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobArrow committed Dec 14, 2023
1 parent 60fb840 commit 4e3a764
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stories/Library/date-calendar/DateCalendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ const DateCalendar = () => {
}
}, []);

return <input type="text" ref={calendar} />;
// An input is required for flatpickr to work, but we don't want to show it in the story
return <input ref={calendar} type="text" className="hide-visually" />;
};

export default DateCalendar;

0 comments on commit 4e3a764

Please sign in to comment.