Skip to content

Commit

Permalink
Hotfix: Another correction to event for system test
Browse files Browse the repository at this point in the history
  • Loading branch information
krschacht committed May 22, 2024
1 parent 7ba7cb1 commit bc71092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/stimulus/textarea_autogrow_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class extends Controller {
window.removeEventListener('main-column-changed', this.throttledAutogrow)
}

throttledAutogrow = throttle((event) => { if (event.detail?.fromAutogrow) this.autogrow(event) }, 50)
throttledAutogrow = throttle((event) => { if (!event.detail?.fromAutogrow) this.autogrow(event) }, 50)
autogrow() {
const prevHeight = getComputedStyle(this.element).height
this.element.style.height = 'auto'
Expand Down

0 comments on commit bc71092

Please sign in to comment.