Add return type to `commentCreateHandler`

This commit is contained in:
Andreas Nedbal 2022-01-09 02:21:42 +01:00 committed by Andreas Nedbal
parent 0418a67780
commit d89302f1cc
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import Rails from '@rails/ujs';
import I18n from '../../../../legacy/i18n';
import { showNotification, showErrorNotification } from 'utilities/notifications';
export function commentCreateHandler(event: KeyboardEvent) {
export function commentCreateHandler(event: KeyboardEvent): boolean {
const input = event.target as HTMLInputElement;
const id = input.dataset.aId;
const counter = document.querySelector(`#ab-comment-charcount-${id}`);