Skip to content

v3.0.0

Choose a tag to compare

@mskocik mskocik released this 29 Oct 15:27
· 445 commits to master since this release

💥 Breaking changes

  • value property is reactive (#41), which results in:
    • removed selection property
    • introduced readSelection property - behaves as the selection one, but it is read-only now
    • value property by default accepts valueField value. If you were using Svelecte with objects as bound values, set valueAsObject
// v2.3.2 and below - you could assign object or array of objects as selection property
<Svelecte bind:selection={myObject}></Svelecte>

/** v3.0+ */ 
// `value` property handle selection and it binds value property of the object
<Svelecte bind:value={myProp}></Svelecte>
// if object is desired, set 'valueAsObject' property
<Svelecte bind:value={myObject} valueAsObject></Svelecte>

✌ New features:

  • drag and drop support (#45)