svelecte

Flexible autocomplete/select component written in Svelte,

MIT License

Downloads
24.5K
Stars
459
Committers
11
svelecte -

Published by mskocik over 2 years ago

New:

  • provide createTransform property to customize newly created option, (#95)
  • add disabled and required props to custom-element API

Fixes:

  • disabled change doesn't trigger fetch abort anymore (#83)
  • trigger change event on custom element after adding selected options for anchored select (#97)

Internal:

  • update svelte-tiny-virtual-list to ^2.0.0
svelecte -

Published by mskocik over 2 years ago

New:

  • pass options as second parameter to createFilter function to enable more flexibility (#86)
  • updated docs
svelecte -

Published by mskocik over 2 years ago

Fixes:

  • fix space key editing issue with single select component (#91)
svelecte -

Published by mskocik over 2 years ago

Fixes:

  • fix input event for inner <select> element (#87)
  • allow number 0 as initial value (#88)
svelecte - v3.5.6

Published by mskocik over 2 years ago

Fixes:

  • delay setting internal selectedOptions when fetch in init mode and value provided and valueAsObject is false (#71)
  • prevent executing computed expression related to value setter twice due to DOM element binding
svelecte -

Published by mskocik almost 3 years ago

Fixes:

  • keeping dropdown opened when disabled has changed to true (#81)
  • prevent fetch error from breaking the app (#82)
svelecte -

Published by mskocik almost 3 years ago

Fixes:

  • fix race condition for initial fetch (#79)
  • fix jumping dropdown on page scroll
svelecte -

Published by mskocik almost 3 years ago

Fixes:

  • fix issue with shared debounce timeout breaking multiple components on page with fetch set to init (#79)
svelecte -

Published by mskocik almost 3 years ago

Fixes:

  • properly remove dropdown's scroll handler (#76)
svelecte -

Published by mskocik almost 3 years ago

Fixes:

  • properly set id property in <input> element, (#72)
svelecte -

Published by mskocik almost 3 years ago

New:

  • ability to provide inputId to be focusable by <label> element, (#72), thanks to @lionelB
svelecte -

Published by mskocik almost 3 years ago

Fixes:

  • reset options when refetching data in init mode (#69)

Enhancements:

  • enable to create options from value when fetch is defined and valueAsObject is also set (#71)
svelecte -

Published by mskocik almost 3 years ago

Fixes:

  • scroll to initially selected option, #66
  • fix regression for dropdown placement, #68
  • correct behaviour for PageUp and PageDown keys, #67
  • fixes and updates to fetch, #65
svelecte -

Published by mskocik almost 3 years ago

Fixes:

  • fix setting of initial value when using labelAsValue, although reported for simple array, but applied to object selection as well (#62)
svelecte -

Published by mskocik almost 3 years ago

New:

  • add option createFilter which enabled you to customize formatting of newly entered option to effectively deny creating items, which don't meet given conditions

Fixes:

  • prevent users to create empty options (#58)
  • remove highlighting in selected items (#59)
svelecte -

Published by mskocik almost 3 years ago

Fixes:

  • ability to handle initial and additional value with option groups (#57)

New:

  • added CSS classes for group items and group headers outside in Dropdown for easier styling
svelecte -

Published by mskocik almost 3 years ago

Fixes:

  • fix passing invalid value (#56)
  • reflect these changes also on custom element
svelecte -

Published by mskocik almost 3 years ago

Fixes:

  • fix unexpected value type - expected number and received string (#56)
svelecte -

Published by mskocik almost 3 years ago

Fixes:

  • fix create row active indicator
  • fixing styling issues related to custom components used as a Item replacement
  • update logic which trigger form submit by Enter, also enable Ctrl + Enter submit
  • fix issue with custom-element getter when trying to dispatch input event (autocomplete error)
svelecte - v3.3.1

Published by mskocik almost 3 years ago

New Features:

  • from now you can supply your own components instead of default one and rely on custom renderer, (#54)
  • make styling easier (#55)
  • create row is now outside dropdown items, ie. always visible. Useful when using creatable with fetch option

Fixes:

  • correct PageUp, PageDown behaviour, (#53)
  • fix keyboard navigation in virtual list
  • add creatablePrefix to custom-element
  • close button on selected items is now <button> instead of <a>
Package Rankings
Top 2.59% on Npmjs.org
Badges
Extracted from project README
NPM version
Related Projects