Add Basecamp-style boosts

This commit is contained in:
Andy Smith
2025-10-27 16:59:57 -05:00
parent bf44ad973a
commit b2a83f1625
17 changed files with 157 additions and 98 deletions
@@ -0,0 +1,11 @@
import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
static targets = [ "input" ]
insertEmoji(event) {
const emojiChar = event.target.getAttribute("data-emoji")
const value = this.inputTarget.value
this.inputTarget.value = `${value}${emojiChar}`
}
}