Skip to content

Commit c7eebb6

Browse files
committed
Merge branch 'develop'
2 parents 7954992 + be53067 commit c7eebb6

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export default function Example() {
161161
| fixRelativePosition | Boolean | false | DatePicker |
162162
| offsetY | Number | 0 | DatePicker |
163163
| offsetX | Number | 0 | DatePicker |
164-
| onPositionChange | Function | 0 | DatePicker |
164+
| onPositionChange | Function | | DatePicker |
165165

166166
## Calendars
167167

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-multi-date-picker",
3-
"version": "2.2.3",
3+
"version": "2.2.4",
44
"description": "a simple React datepicker component for work with gregorian, persian, arabic and indian calendars",
55
"main": "./build/index.js",
66
"types": "index.d.ts",

src/components/day_picker/day_picker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export default function DayPicker({
185185
if (range && !disabled && mustDisplaySelectedDate) {
186186
if (selectedDate.length === 1) {
187187
if (isSameDate(date, selectedDate[0])) names.push("rmdp-range")
188-
} else {
188+
} else if (selectedDate.length === 2) {
189189
let { year, month, day } = date,
190190
first = selectedDate[0],
191191
second = selectedDate[1]

styles/backgrounds/bg-brown.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.bg-brown .rmdp-month-picker,
33
.bg-brown .rmdp-year-picker,
44
.bg-brown .rmdp-time-picker div input,
5-
.bg-brown.ep-arrow::after {
5+
.rmdp-container .bg-brown.ep-arrow::after {
66
background-color: #5d4037;
77
color: #d7ccc8;
88
}
@@ -22,18 +22,18 @@
2222
color: #f5f5f5;
2323
}
2424

25-
.bg-brown.ep-arrow[direction="top"] {
25+
.rmdp-container .bg-brown.ep-arrow[direction="top"] {
2626
border-bottom: 1px solid #5d4037;
2727
}
2828

29-
.bg-brown.ep-arrow[direction="left"] {
29+
.rmdp-container .bg-brown.ep-arrow[direction="left"] {
3030
border-right: 1px solid #5d4037;
3131
}
3232

33-
.bg-brown.ep-arrow[direction="right"] {
33+
.rmdp-container .bg-brown.ep-arrow[direction="right"] {
3434
border-left: 1px solid #5d4037;
3535
}
3636

37-
.bg-brown.ep-arrow[direction="bottom"] {
37+
.rmdp-container .bg-brown.ep-arrow[direction="bottom"] {
3838
border-top: 1px solid #5d4037;
3939
}

styles/backgrounds/bg-dark.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.bg-dark .rmdp-month-picker,
33
.bg-dark .rmdp-year-picker,
44
.bg-dark .rmdp-time-picker div input,
5-
.bg-dark.ep-arrow::after {
5+
.rmdp-container .bg-dark.ep-arrow::after {
66
background-color: #312f2f;
77
color: #c4c7ca;
88
}
@@ -22,18 +22,18 @@
2222
color: #f5f5f5;
2323
}
2424

25-
.bg-dark.ep-arrow[direction="top"] {
25+
.rmdp-container .bg-dark.ep-arrow[direction="top"] {
2626
border-bottom: 1px solid #312f2f;
2727
}
2828

29-
.bg-dark.ep-arrow[direction="left"] {
29+
.rmdp-container .bg-dark.ep-arrow[direction="left"] {
3030
border-right: 1px solid #312f2f;
3131
}
3232

33-
.bg-dark.ep-arrow[direction="right"] {
33+
.rmdp-container .bg-dark.ep-arrow[direction="right"] {
3434
border-left: 1px solid #312f2f;
3535
}
3636

37-
.bg-dark.ep-arrow[direction="bottom"] {
37+
.rmdp-container .bg-dark.ep-arrow[direction="bottom"] {
3838
border-top: 1px solid #312f2f;
3939
}

styles/backgrounds/bg-gray.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.bg-gray.rmdp-wrapper,
22
.bg-gray .rmdp-month-picker,
33
.bg-gray .rmdp-year-picker,
4-
.bg-gray.ep-arrow::after {
4+
.rmdp-container .bg-gray.ep-arrow::after {
55
background-color: #b1abab;
66
color: white;
77
}
@@ -22,18 +22,18 @@
2222
color: white;
2323
}
2424

25-
.bg-gray.ep-arrow[direction="top"] {
25+
.rmdp-container .bg-gray.ep-arrow[direction="top"] {
2626
border-bottom: 1px solid #b1abab;
2727
}
2828

29-
.bg-gray.ep-arrow[direction="left"] {
29+
.rmdp-container .bg-gray.ep-arrow[direction="left"] {
3030
border-right: 1px solid #b1abab;
3131
}
3232

33-
.bg-gray.ep-arrow[direction="right"] {
33+
.rmdp-container .bg-gray.ep-arrow[direction="right"] {
3434
border-left: 1px solid #b1abab;
3535
}
3636

37-
.bg-gray.ep-arrow[direction="bottom"] {
37+
.rmdp-container .bg-gray.ep-arrow[direction="bottom"] {
3838
border-top: 1px solid #b1abab;
3939
}

0 commit comments

Comments
 (0)