File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
core/src/components/accordion Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,9 +45,9 @@ export class Accordion implements ComponentInterface {
4545 */
4646 const accordionGroup = this . accordionGroupEl ;
4747 if ( accordionGroup ) {
48- const value = accordionGroup . value ;
49- const accordionValue = this . value ;
50- const shouldExpand = Array . isArray ( value ) ? value . includes ( accordionValue ) : value === accordionValue ;
48+ const groupValue = accordionGroup . value ;
49+ const value = this . value ;
50+ const shouldExpand = Array . isArray ( groupValue ) ? groupValue . includes ( value ) : groupValue === value ;
5151 const isExpanded = this . state === AccordionState . Expanded || this . state === AccordionState . Expanding ;
5252 const stateWillChange = shouldExpand !== isExpanded ;
5353
@@ -65,7 +65,7 @@ export class Accordion implements ComponentInterface {
6565 * This prevents the initial undefined value from the group's componentDidLoad
6666 * from being treated as the first real update.
6767 */
68- if ( value !== undefined ) {
68+ if ( groupValue !== undefined ) {
6969 this . hasReceivedFirstUpdate = true ;
7070 }
7171 }
You can’t perform that action at this time.
0 commit comments