mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-15 18:39:58 +01:00
Add return type to commentCreateHandler
This commit is contained in:
parent
0418a67780
commit
d89302f1cc
1 changed files with 1 additions and 1 deletions
|
@ -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}`);
|
||||
|
|
Loading…
Reference in a new issue