Skip to content

Commit 11deb7a

Browse files
Merge branch 'master' into pr/3844
2 parents 25fde83 + be27eb2 commit 11deb7a

File tree

17 files changed

+1223
-774
lines changed

17 files changed

+1223
-774
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Start reading our code, and you'll get the hang of it. We optimize for readabili
2424

2525
Local development configuration is pretty snappy. Here's how to get set up:
2626

27-
1. Install/use node >=11.10.1
27+
1. Install/use node >=16.0.0
2828
1. Run `yarn link` from project root
2929
1. Run `cd docs-site && yarn link react-datepicker`
3030
1. Run `yarn install` from project root

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,4 @@ The examples are hosted within the docs folder and are ran in the simple app tha
170170

171171
## License
172172

173-
Copyright (c) 2014-2021 HackerOne Inc. and individual contributors. Licensed under MIT license, see [LICENSE](LICENSE) for the full license.
173+
Copyright (c) 2014-2023 HackerOne Inc. and individual contributors. Licensed under MIT license, see [LICENSE](LICENSE) for the full license.

docs-site/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
]
3333
},
3434
"devDependencies": {
35-
"sass": "^1.56.1",
35+
"sass": "^1.57.1",
3636
"raw-loader": "^4.0.2"
3737
}
3838
}

docs-site/src/components/Examples/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ import CloseOnScrollCallback from "../../examples/closeOnScrollCallback";
8989
import SelectsRange from "../../examples/selectsRange";
9090
import selectsRangeWithDisabledDates from "../../examples/selectsRangeWithDisabledDates";
9191
import CalendarStartDay from "../../examples/calendarStartDay";
92+
import ExternalForm from "../../examples/externalForm";
9293

9394
import "./style.scss";
9495
import "react-datepicker/dist/react-datepicker.css";
@@ -456,6 +457,10 @@ export default class exampleComponents extends React.Component {
456457
title: "Calendar Start day",
457458
component: CalendarStartDay,
458459
},
460+
{
461+
title: "External Form",
462+
component: ExternalForm,
463+
},
459464
];
460465

461466
handleAnchorClick = (e, id) => {
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
() => {
2+
const [startDate, setStartDate] = useState(null);
3+
4+
return (
5+
<>
6+
<DatePicker
7+
selected={startDate}
8+
onChange={(date) => setStartDate(date)}
9+
required
10+
form="external-form"
11+
/>
12+
<form id="external-form">
13+
<input type="submit" />
14+
</form>
15+
</>
16+
);
17+
};

0 commit comments

Comments
 (0)