Use buil-in support for :self in Stimulus
Thanks to @brunoprietog for advice https://github.com/basecamp/fizzy/pull/1927/files/9639e07ab88f628f5f37ad2aa9acee2b86d4fb1a#diff-24a46f2ca97f2964d4d8940123b7f76578694567df84256f576aa4bee221179e
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user