Skip to content

Commit

Permalink
bugfix: Fix the error when status of disableDateTemparyToggle is no…
Browse files Browse the repository at this point in the history
…t available
  • Loading branch information
zjh1943 committed Mar 27, 2023
1 parent 3e3037b commit 5fa61bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "antddaterangepicker",
"widgetName": "AntdDateRangePicker",
"version": "1.1.0",
"version": "1.1.1",
"description": "A powerful Mendix pluggable widget used to pick date and time. It brings the ant-deign widget DatePicker into Mendix and implements almost all the features of the original widget.",
"copyright": "© Mendix Technology BV 2022. All rights reserved.",
"author": "Jonathan Zhu",
Expand Down
2 changes: 1 addition & 1 deletion src/AntdDateRangePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class AntdDateRangePicker extends Component<AntdDateRangePickerContainerP
let disablingFunctionOpen = false;
if (props.disableDateMode !== "off") {
disablingFunctionOpen = true;
if (props.disableDateTemparyToggle && props.disableDateTemparyToggle?.value === false) {
if (props.disableDateTemparyToggle?.status === "available" && props.disableDateTemparyToggle?.value === false) {
disablingFunctionOpen = false;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<package xmlns="http://www.mendix.com/package/1.0/">
<clientModule name="AntdDateRangePicker" version="1.1.0" xmlns="http://www.mendix.com/clientModule/1.0/">
<clientModule name="AntdDateRangePicker" version="1.1.1" xmlns="http://www.mendix.com/clientModule/1.0/">
<widgetFiles>
<widgetFile path="AntdDateRangePicker.xml"/>
</widgetFiles>
Expand Down

0 comments on commit 5fa61bb

Please sign in to comment.