v0.10.0
版本发布时间: 2016-04-24 21:53:39
cibernox/ember-power-select最新发布版本:v8.3.1(2024-09-09 14:37:17)
After a week without any but, 0.10 becomes stable! 💃
Accumulated changelog since 0.9
- [BUGFIX] Ensure that returning
false
from theonkeydown
action prevents the default behaviour even when that default behaviour is handled by ember-basic-dropdown. - [BREAKING]
e.preventDefault()
no longer affects the behaviour of the component, just prevents the native browser behaviour. Returnfalse
instead. - [BUGFIX/BREAKING]
onopen
/onclose
actions are called before the component is opens/closes, giving the user the change to prevent that from happening by returning false. - [BUGFIX]
select.actions.select
doesn't callstopPropagation
orpreventDefault
in the given event anymore. It's not it's responsability. - [INTERNAL] Update Ember-basic-dropdown to 0.9.5-beta.14. PublicAPI should be the same, but internal have been simplified and responsabilities better divided across components. Nothing should break, but given the size of the changes ¯_(ツ)_/¯
- [BUGFIX] The trigger of the single select applies overflow if the content is too long
- [FEATURE] Selects can now be nested inside other dropdowns.
- [FEATURE] Allow to pass WAI-ARIA states (ariaDescribedBy, ariaInvalid, ariaLabel, ariaLabelledBy and required)
- [BUGFIX] Avoid highlight disabled options when they are the first option after a search. Instead, highlight the first non-disabled option in the list. When all results are disabled, nothing gets highlighted.
- [ENHANCEMENT] Add a class to the component when an element inside has the focus. This allows to style the component not only when the component itself is focused but when an input inside is, which was previously impossible.
- [BUGFIX] Allow to pass
horizontalPosition
to customize to which edge of the trigger the dropdown is anchored to. - [FEATURE] The
selected
option can now also be a promise. When it's a promise, the component won't have any selection (the trigger will be empty, no option of the list will be highlighted) until that promise resolves. Once it resolves, the trigger and the highlighted option will update. - [BUGFIX] Fixed bug after event-delegation refactor where mouseovering the list itself (which happens when options are disabled) throwed an error.
- [BUGFIX] Disabled select shouldn't be clearable even if
allowClear=true
. - [BUGFIX] In multiple selects when test in the searchbox was too long the text overflowed the trigger.
- [REMOVE FEATURE] The
opened
property (the only using double bindings instead of DDAU) has been removed. It was the cause of some errors due to race conditions in the bindings propagation. It is still possible to passinitiallyOpened=true
to render a select already opened, but it is a one time property. It won't onpen/close the select when mutated nor will be mutated when the select is opened or closed. - [BUGFIX] Fix option highlighting when the use mouseovers in an element inside the
<li>
s - [BUGFIX] Fix option selection when the use click in an element inside the
<li>
s - [BUGFIX] In multiple selects, deleting the last element of the list using BACKSPACE to trigger a search must open the dropdown if not already opened.
- [FEATURE] Added
oninput
action that will be fired by changes in the search input. If the user returnsfalse
from this action the default behaviour (perform a search) is not run. This is particular useful for addons than need to preprocess the text being typed, by example to tokenize it and add entries instead of performing a search. - [ENHANCEMENT] Improve accuracy
selectChoose
. BeforeselectChoose('.my-select', 'User')
might, erroneously, select the option containing the textUser team
if it was before thanUser
in the list. Now if there is more than one option containing the given text it but the content of one of the options is identical, then that one is choosen. If none is identical, the first one.