Skip to content

Commit

Permalink
color_picker: inline targetEl
Browse files Browse the repository at this point in the history
Co-authored-by: Kasper Timm Hansen <[email protected]>
  • Loading branch information
2 people authored and jagthedrummer committed Mar 8, 2024
1 parent 60e0c8b commit 093dcbf
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ export default class extends Controller {
pickColor(event) {
event.preventDefault()

const targetEl = event.target
const color = targetEl.dataset.color
const color = event.target.dataset.color

this.colorInputTarget.value = color
this.colorPickerValueTarget.value = color
Expand Down

0 comments on commit 093dcbf

Please sign in to comment.