Skip to content

Commit

Permalink
Merge pull request #5851 from gucal/master
Browse files Browse the repository at this point in the history
Fix #5850 - Calendar blur not working
  • Loading branch information
gucal authored Jan 29, 2024
2 parents 60e6ef0 + 0a0320e commit fe2312e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
36 changes: 18 additions & 18 deletions components/doc/multiselect/loadingdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { DocSectionText } from '@/components/doc/common/docsectiontext';
import { MultiSelect } from '@/components/lib/multiselect/MultiSelect';

export function LoadingDoc(props) {
const code = {
basic: `
const code = {
basic: `
<MultiSelect loading placeholder="Loading..." className="w-full md:w-20rem" />
`,
javascript: `
javascript: `
import React from "react";
import { MultiSelect } from 'primereact/multiselect';
Expand All @@ -19,7 +19,7 @@ export default function LoadingDemo() {
);
}
`,
typescript: `
typescript: `
import React from "react";
import { MultiSelect } from 'primereact/multiselect';
Expand All @@ -31,19 +31,19 @@ export default function LoadingDemo() {
);
}
`
};
};

return (
<>
<DocSectionText {...props}>
<p>
Loading state can be used <i>loading</i> property.
</p>
</DocSectionText>
<div className="card flex justify-content-center">
<MultiSelect loading placeholder="Loading..." className="w-full md:w-20rem" />
</div>
<DocSectionCode code={code} />
</>
);
return (
<>
<DocSectionText {...props}>
<p>
Loading state can be used <i>loading</i> property.
</p>
</DocSectionText>
<div className="card flex justify-content-center">
<MultiSelect loading placeholder="Loading..." className="w-full md:w-20rem" />
</div>
<DocSectionCode code={code} />
</>
);
}
2 changes: 1 addition & 1 deletion components/lib/calendar/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const Calendar = React.memo(
overlay: overlayRef,
listener: (event, { type, valid }) => {
if (valid) {
type === 'outside' ? !isOverlayClicked.current && !isNavIconClicked(event.target) && hide('outside', reFocusInputField) : hide(null, reFocusInputField);
type === 'outside' ? !isOverlayClicked.current && !isNavIconClicked(event.target) && hide('outside') : hide();
}

isOverlayClicked.current = false;
Expand Down

0 comments on commit fe2312e

Please sign in to comment.