fregante/fit-textarea

Auto-kill when resize events take too long

開放

#14 建立於 2021年1月10日

 (0 則留言) (0 個反應) (0 位負責人)TypeScript (2 個分叉)github user discovery
enhancementgood first issuehelp wanted

倉庫指標

星標
 (83 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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*/})

貢獻者指南