mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-22 03:50:30 +00:00
fix(ci): the drag hook lists its dependencies, closeOnDone stays module-private, and the weight test waits for its save
This commit is contained in:
@@ -115,7 +115,7 @@ export function prepareField(target: EventTarget | null): void {
|
||||
* the capture phase, so the field's text is read before any handler of the field
|
||||
* runs; whether one took the Enter is read off the event once it has gone round.
|
||||
*/
|
||||
export function closeOnDone(e: KeyboardEvent): void {
|
||||
function closeOnDone(e: KeyboardEvent): void {
|
||||
const el = e.target;
|
||||
if (e.key !== 'Enter' || e.isComposing) return;
|
||||
if (!(el instanceof HTMLInputElement) || el.getAttribute('enterkeyhint') !== 'done') return;
|
||||
|
||||
Reference in New Issue
Block a user