Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
dev: fix update breakpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
0b5vr committed Apr 7, 2023
1 parent 8b08fa3 commit 2420149
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/heck/components/Component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ export class Component {
const ha = gui;
const breakpoint = ha?.value( 'breakpoint/update', '' ) ?? '';
if ( breakpoint !== '' ) {
const path = ancestorsToPath( event.ancestors );
const path = ancestorsToPath( [ ...event.ancestors, this ] );

if ( new RegExp( breakpoint ).test( path ) ) {
Component.updateHaveReachedBreakpoint = true;
}
Expand Down

0 comments on commit 2420149

Please sign in to comment.