vue-input-autowidth

A Vue.js directive that automatically resizes an input's width to fit its contents.

MIT License

Downloads
36.3K
Stars
103

Bot releases are hidden (Show)

vue-input-autowidth - v2.2.0 Latest Release

Published by syropian about 3 years ago

Breaking Changes

  • The directive will now only add a min-width or max-width inline style if a minWidth / maxWith option is passed

New Options

  • watchWindowSize: When enabled, the directive will listen to the window resize event, and resize the input if needed.
  • windowResizeHandlerDebounceTime: The debounce time in milliseconds for the window resize event. Only applies if watchWindowSize is true.
  • disableNonInputWarning: Disables the console warning if you try and use the directive on a non-input element.

Other Changes

  • Fixes some misc. project structure stuff
vue-input-autowidth - v2.0.2

Published by syropian about 3 years ago

  • Internal restructure
  • Exports config option type as InputAutoWidthOptions
vue-input-autowidth - v.2.0.1

Published by syropian about 3 years ago

  • Adds Cypress tests
vue-input-autowidth - v2.0.0 — The one that works with Vue 3

Published by syropian about 3 years ago

This is a brand new release that is compatible with Vue 3 and written in TypeScript.

Please consult the v2 documentation for installation instructions.

Breaking Changes

  • The comfortZone option should now be a string that is any valid size value in CSS, instead of a number. Eg. 10px, 4rem, 2ch, etc.
  • Drops IE11 support
vue-input-autowidth - v1.0.11

Published by syropian over 3 years ago

  • Adds 'binding' to the unbind hook (#38) 07ddfea
  • Bump highlight.js from 9.15.10 to 10.4.0 (#34) 329c18a
  • Bump dot-prop from 4.2.0 to 4.2.1 (#33) 13c11a7
  • Bump http-proxy from 1.17.0 to 1.18.1 (#32) aeaddae
  • Bump node-sass from 4.12.0 to 4.13.1 (#31) c93e92d
  • Bump elliptic from 6.5.1 to 6.5.3 (#29) 6027aab
  • Bump lodash from 4.17.15 to 4.17.19 (#27) 3c19887
  • Check in example files a488e5a

https://github.com/syropian/vue-input-autowidth/compare/v1.0.10...v1.0.11

vue-input-autowidth - 1.0.10

Published by syropian over 4 years ago

  • Adds support for text inputs that do not use v-model
  • Bump handlebars from 4.2.0 to 4.5.3 (#19)
vue-input-autowidth - 1.0.9

Published by syropian about 5 years ago

vue-input-autowidth - 1.0.8

Published by syropian about 5 years ago

  • Merge branch 'master' of github.com:syropian/vue-input-autowidth 38e313e
  • Switches scroll overflow to hidden on the mirror element, as it causes Forefox on Windows to include scrollbars in its width calculation on Windows dd9c3d9
  • Update README.md 83f2659

https://github.com/syropian/vue-input-autowidth/compare/v1.0.7...v1.0.8

vue-input-autowidth - 1.0.7

Published by syropian about 5 years ago

  • moves object-assign package to regular deps e802afb

https://github.com/syropian/vue-input-autowidth/compare/v1.0.6...v1.0.7

vue-input-autowidth - 1.0.6

Published by syropian about 5 years ago

  • Fixes moduleName field in package.json b510075
  • Simplify tests 5bb07e3
  • Simplifies size calculations and fixes sizing issue on Firefox c36118e

https://github.com/syropian/vue-input-autowidth/compare/v1.0.5...v1.0.6