From 255fb54b209265986d90cfe9031b0ebfdc4db1c4 Mon Sep 17 00:00:00 2001 From: gucal Date: Mon, 29 Jan 2024 15:06:42 +0300 Subject: [PATCH 1/3] Fix #5850 - Calendar blur not working --- components/lib/calendar/Calendar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/calendar/Calendar.js b/components/lib/calendar/Calendar.js index 492a29b304..d638e645d8 100644 --- a/components/lib/calendar/Calendar.js +++ b/components/lib/calendar/Calendar.js @@ -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(null, reFocusInputField); } isOverlayClicked.current = false; From 6deef313bdbef7b727831650848987ce6a03d45a Mon Sep 17 00:00:00 2001 From: gucal Date: Mon, 29 Jan 2024 15:12:32 +0300 Subject: [PATCH 2/3] Fix #5850 - Calendar blur not working --- components/lib/calendar/Calendar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/calendar/Calendar.js b/components/lib/calendar/Calendar.js index d638e645d8..f6fe9fe076 100644 --- a/components/lib/calendar/Calendar.js +++ b/components/lib/calendar/Calendar.js @@ -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') : hide(null, reFocusInputField); + type === 'outside' ? !isOverlayClicked.current && !isNavIconClicked(event.target) && hide('outside') : hide(); } isOverlayClicked.current = false; From 0a0320e37ee28d60ea11a1f1366939edb024d6a6 Mon Sep 17 00:00:00 2001 From: gucal Date: Mon, 29 Jan 2024 15:13:05 +0300 Subject: [PATCH 3/3] Lint fixes --- components/doc/multiselect/loadingdoc.js | 36 ++++++++++++------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/components/doc/multiselect/loadingdoc.js b/components/doc/multiselect/loadingdoc.js index 120219430c..cd8e728957 100644 --- a/components/doc/multiselect/loadingdoc.js +++ b/components/doc/multiselect/loadingdoc.js @@ -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: ` `, - javascript: ` + javascript: ` import React from "react"; import { MultiSelect } from 'primereact/multiselect'; @@ -19,7 +19,7 @@ export default function LoadingDemo() { ); } `, - typescript: ` + typescript: ` import React from "react"; import { MultiSelect } from 'primereact/multiselect'; @@ -31,19 +31,19 @@ export default function LoadingDemo() { ); } ` - }; + }; - return ( - <> - -

- Loading state can be used loading property. -

-
-
- -
- - - ); + return ( + <> + +

+ Loading state can be used loading property. +

+
+
+ +
+ + + ); }