From ca3fdb9c6ce9e2a53ccee281a7c0adcd31ea8940 Mon Sep 17 00:00:00 2001 From: navedqb Date: Thu, 11 Jul 2024 14:17:05 +0530 Subject: [PATCH] fix: enable label click to open colorpicker --- apps/showcase/doc/common/apidoc/index.json | 8 ++++++++ packages/primevue/src/colorpicker/ColorPicker.d.ts | 4 ++++ packages/primevue/src/colorpicker/ColorPicker.vue | 6 +++--- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/apps/showcase/doc/common/apidoc/index.json b/apps/showcase/doc/common/apidoc/index.json index c57329d7f..bba598b86 100644 --- a/apps/showcase/doc/common/apidoc/index.json +++ b/apps/showcase/doc/common/apidoc/index.json @@ -10598,6 +10598,14 @@ "type": "boolean", "default": "false", "description": "When enabled, it removes component related styles in the core." + }, + { + "name": "inputId", + "optional": true, + "readonly": false, + "type": "string", + "default": "", + "description": "Identifier of the focus input to match a label defined for the dropdown." } ], "methods": [] diff --git a/packages/primevue/src/colorpicker/ColorPicker.d.ts b/packages/primevue/src/colorpicker/ColorPicker.d.ts index cfa2997da..edc17a2bc 100755 --- a/packages/primevue/src/colorpicker/ColorPicker.d.ts +++ b/packages/primevue/src/colorpicker/ColorPicker.d.ts @@ -201,6 +201,10 @@ export interface ColorPickerProps { * @defaultValue false */ unstyled?: boolean; + /** + * Identifier of the focus input to match a label defined for the dropdown. + */ + inputId?: string | undefined; } export interface ColorPickerSlots {} diff --git a/packages/primevue/src/colorpicker/ColorPicker.vue b/packages/primevue/src/colorpicker/ColorPicker.vue index 968a66be4..beb73264f 100755 --- a/packages/primevue/src/colorpicker/ColorPicker.vue +++ b/packages/primevue/src/colorpicker/ColorPicker.vue @@ -1,6 +1,6 @@