Merge pull request #1936 from basecamp/use-self

Use buil-in support for :self in Stimulus
This commit is contained in:
Jorge Manrubia
2025-12-04 22:42:55 +01:00
committed by GitHub
2 changed files with 1 additions and 7 deletions
@@ -28,12 +28,6 @@ export default class extends Controller {
}
}
morphed({target}) {
if (this.element === target) {
this.update()
}
}
get #hasEntropy() {
return this.#entropyCleanupInDays < this.entropyValue.daysBeforeReminder
}
@@ -4,7 +4,7 @@
class: "bubble",
data: {
controller: "bubble",
action: "turbo:morph-element->bubble#morphed",
action: "turbo:morph-element->bubble#update:self",
bubble_entropy_value: entropy_bubble_options_for(card).to_json,
bubble_stalled_value: stalled_bubble_options_for(card)&.to_json
} do %>