svelecte

Flexible autocomplete/select component written in Svelte,

MIT License

Downloads
24.5K
Stars
459
Committers
11
svelecte - Latest Release

Published by mskocik 2 months ago

Fixes:

  • allow empty string or zero as initial value (#244)
svelecte -

Published by mskocik 3 months ago

Fixes:

  • fix list message when all items are selected (#243)
svelecte -

Published by mskocik 3 months ago

Fixes:

  • fix list message when all items are selected (#243)
svelecte -

Published by mskocik 3 months ago

Mirroring changes from 4.2.3

Fixes:

  • properly catch errors in user-provided createHandler to dispatch createFail event. (#239)
  • invert keepCreated condition check (#240)
  • add tests for creatable related logic
svelecte - v4.2.3

Published by mskocik 3 months ago

Fixes:

  • properly catch errors in user-provided createHandler to dispatch createFail event. (#239)
  • invert keepCreated condition check (#240)
  • add tests for creatable related logic
svelecte - v5.0.0-next.11

Published by mskocik 4 months ago

Fixes:

  • tweak CSS to prevent height jump on focus/selection, fix #236 (PR #237)

Breaking:

  • CSS changes to default values on some css properties/variables, see related PR (#237)
svelecte -

Published by mskocik 5 months ago

Breaking changes:

  • underlying <select> element is not rendered by default (#229)

Changes:

  • name property is empty by default (causing BC break) (#229)

Fixes:

  • prevent same multiple id elements (#229)
svelecte -

Published by mskocik 5 months ago

Fixes:

  • ability to set initial value in strict valueAsObject mode (#233)
svelecte -

Published by mskocik 5 months ago

Fixes:

  • ability to set initial value in strict valueAsObject mode (#233)
svelecte -

Published by mskocik 5 months ago

Fixes

  • properly fix leaking $selected property to value (in valueAsObject mode) and readSelection (#232)
  • ensure default renderer has label property set
svelecte -

Published by mskocik 5 months ago

Fixes:

  • do not propagate internal $selected property into valueAsObject (#232)
svelecte -

Published by mskocik 5 months ago

Fixes:

  • clone options to prevent throwing mutation error outside bindable props (#228)
svelecte -

Published by mskocik 5 months ago

Fixes:

  • clone options to prevent it's mutation (#228)
svelecte -

Published by mskocik 5 months ago

New:

  • add fetchProps to global config and remove "defaults" (#227)
svelecte -

Published by mskocik 5 months ago

New:

  • add fetchProps to global config and remove "defaults" (#227)
svelecte -

Published by mskocik 6 months ago

Fixes:

  • set undefined as initial value for optional snippets
svelecte -

Published by mskocik 6 months ago

Fixes

  • update internal logic to prevent infinite loop
svelecte - v5.0.0-next.2

Published by mskocik 6 months ago

Breaking:

  • replace slots with snippets
svelecte -

Published by mskocik 6 months ago

Make library compatible with upcoming svelte v5. Mostly internal changes.

Breaking changes 💥

  • Drop dispatching custom events through createEventDispatcher. Callback methods are expected instead. Previous event names has now added prefix on and are properly capitalized. This is a list of event to callback mapping:
    • change changed to onChange
    • focus changed to onFocus
    • blur changed to onBlur
    • createoption changed to onCreateOption
    • createFail changed to onCreateFail
    • enterKey changed to onEnterKey
    • fetch changed to onFetch
    • fetchError changed to onFetchError
    • invalidValue changed to onInvalidValue
  • Drop support for svelte-use-form validation library.
svelecte - v4.1.0

Published by mskocik 6 months ago

New

  • extend search props (#221)
  • add listener to wrapping form reset event (#156)
  • added option slot example to docs (#223)
  • update inner logic for custom element
  • add standalone build for custom-element version (available in /bundle folder)

Fixes

  • ensure dropdown is valid before trying to show aria message on dropdown open (#224)
Package Rankings
Top 2.59% on Npmjs.org
Badges
Extracted from project README
NPM version
Related Projects