From ea72cf12669b42e477ce3b388c5a00ecc2954e29 Mon Sep 17 00:00:00 2001 From: byeongin yoon Date: Thu, 27 Jun 2024 18:36:55 +0900 Subject: [PATCH] Fix: Correct variable name in color directive example code (#62912) - Change 'color' to 'colors' in destructured parameter of example code - Update ensures the example code accurately demonstrates correct usage Co-authored-by: byeongin Unlinked contributors: byeongin@shoplic.kr. --- packages/interactivity/src/hooks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/interactivity/src/hooks.tsx b/packages/interactivity/src/hooks.tsx index d8aa43d2c0e5af..9af6fb00d6aba5 100644 --- a/packages/interactivity/src/hooks.tsx +++ b/packages/interactivity/src/hooks.tsx @@ -231,7 +231,7 @@ const directivePriorities: Record< string, number > = {}; * ```js * directive( * 'color', // Name without prefix and suffix. - * ( { directives: { color }, ref, evaluate } ) => + * ( { directives: { color: colors }, ref, evaluate } ) => * colors.forEach( ( color ) => { * if ( color.suffix = 'text' ) { * ref.style.setProperty(