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:
Maurice
2026-11-12 07:10:18 +00:00
parent 855bf8610a
commit c515f95d17
3 changed files with 15 additions and 10 deletions
+1 -1
View File
@@ -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;