fregante/fit-textarea

Auto-kill when resize events take too long

Open

#14 opened on Jan 10, 2021

 (0 comments) (0 reactions) (0 assignees)TypeScript (2 forks)github user discovery
enhancementgood first issuehelp wanted

Repository metrics

Stars
 (83 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

As an opt-out behavior, it could measure how long each call takes and if it's above a certain duration it should set the field to a 2:1 ratio with a minimum height of 200px

fitTextarea.watch(field, {maxDuration: 300 /*ms*/})

Contributor guide