Skip to content

Commit

Permalink
return delegate if no modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx authored Jun 26, 2024
1 parent 51686eb commit eed14c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@glimmer/manager/lib/public/modifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class CustomModifierManager<O extends Owner, ModifierInstance>
if (typeof delegate.getDebugInstance === 'function') {
return delegate.getDebugInstance(state);
}
return state.modifier;
return state.modifier || delegate;
}

getTag({ tag }: CustomModifierState<ModifierInstance>) {
Expand Down

0 comments on commit eed14c5

Please sign in to comment.