Skip to content

Commit

Permalink
Merge 8fc5cb2 into fff7773
Browse files Browse the repository at this point in the history
  • Loading branch information
pymc20 committed Jul 10, 2023
2 parents fff7773 + 8fc5cb2 commit 9ece7c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1188,8 +1188,8 @@ export default class DatePicker extends React.Component {
const { showIcon } = this.props;
return (
<div
className={`react-datepicker__input-container ${
showIcon ? "react-datepicker__view-calendar-icon" : ""
className={`react-datepicker__input-container${
showIcon ? " react-datepicker__view-calendar-icon" : ""
}`}
>
{showIcon && (
Expand Down
4 changes: 2 additions & 2 deletions test/datepicker_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2111,9 +2111,9 @@ describe("DatePicker", () => {
);
let showIconClass = TestUtils.findRenderedDOMComponentWithClass(
datePicker,
"react-datepicker__input-container "
"react-datepicker__input-container"
).getAttribute("class");
expect(showIconClass).to.equal("react-datepicker__input-container ");
expect(showIconClass).to.equal("react-datepicker__input-container");
});

it("should display the Calendar icon if showIcon is set to true", () => {
Expand Down

0 comments on commit 9ece7c0

Please sign in to comment.