Skip to content

Commit

Permalink
stop event propagation so expand/collapse doesn't switch text to edit…
Browse files Browse the repository at this point in the history
… mode
  • Loading branch information
michaelchadwick committed Sep 11, 2024
1 parent 7a7208a commit f0368f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/ilios-common/addon/components/fade-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ export default class FadeTextComponent extends Component {
}

@action
expand() {
expand(event) {
event.stopPropagation();
this.expanded = true;
}

@action
collapse() {
collapse(event) {
event.stopPropagation();
this.expanded = false;
}
}

0 comments on commit f0368f6

Please sign in to comment.