- [BREAKING]
dropdown.uniqueId
is not a string likeember1234
instead of the number1234
.
- [BUGFIX] Consider the scope of the select the entire body, even if the app is rendered inside an specific element.
- [BREAKING] Rename the
dropdown._id
todropdown.uniqueId
and promote it to public API.
- [BUGFIX] Make the first reposition faster by applying the styles directly instead of using bindings. This allows the dropdown to have components with autofocus inside without messing with the scroll.
- [BUGFIX] Enabling the component after it has been disabled should trigger the
registerAPI
action.
- [BUGFIX] Fix bug when the consumer app has a version of
ember-cli-shims
older than 0.1.3
- [BUGFIX] Stop importing
getOwner
from the shim, since many people doesn't have shims up to date and it's trolling them.
- [BUGFIX] Render more than one component with
renderInPlace=true
cases an exception and after that mayhem happens.
- [BUGFIX] Use
requestAnimationFrame
to wait one frame before checking if the component is being animated. This makes this component fully compatible with Glimmer 2.
- [ENHANCEMENT/BREAKING] Now the publicAPI object received sub-components and passed to actions is
immutable. That means that each change in the internal state of this component will generate a new
object. This allows userts to get rid of
Ember.Observe
to use some advanced patterns and makes possible some advanced time-travel debugging.
- [ENHANCEMENT] Allow to customize the classes used for animations with
transitioningInClass
,transitionedInClass
andtransitioningOutClass
. - [BUGFIX] Property detect space on the right when
horizontalPosition="auto"
(the default) and position the element anchored to the right of the dropdown if there is no enough space for it to fit.
- [BUGFIX] Correctly remove touchmove event on touch ends.
- [BUGFIX] Prevent DOM access in fastboot mode.
- [ENHANCEMENT] If the component gets disabled while it's opened, it is closed automatically.
- [ENHANCEMENT] Expose
clickDropdown
andtapDropdown
acceptance helpers. - [BUGFIX] Allow to nest a dropdown inside another dropdown without the second being rendered in place.
- [BUGFIX] Apply enter animation after render. Otherwise it take place before the component
gains the
--above
or--below
class, which is needed to know how to animate.
- [BUGFIX] Allow
to
property of the content component to be undefined
- [BUGFIX] Fix positioning of dropdowns rendered in-place due to a typo
- [BUGFIX] Ensure the
disabled
property of the public API is updated properly
- [BUGFIX] Ensure reposition is not applied in destroyed components
- [BUGFIX] Fix animations
- [INTERNAL] Update ember-cli to 2.6
- [INTERNAL] Update ember-wormhole to 0.4.0 (fastboot support)
- [BUGFIX] Correct behaviour of
aria-disabled
,aria-expanded
,aria-invalid
,aria-pressed
andaria-required
in Ember 2.7+ - [ENHANCEMENT] Allow to customize componets for the trigger and the content, with the
triggerComponent
andcontentComponent
properties. - [BUGFIX] Stop relying in
this.elementId
, since it is not present in Ember 2.7+ on tagless components. - [ENHANCEMENT] Add an
onBlur
action to the trigger - [BUGFIX] Change repositioning logic so it doesn't sets properties from inside the
didInsertElement
, which is deprecated and causes a performance penalty.
- [ENHANCEMENT] Although the component is tagless by default, if the user passes
renderInPlace=true
, a wrapper element with class.ember-basic-dropdown
is added to be able to position the content properly. - [BUGFIX] The reposition function no longer sets any observable state, so it can be called at any time without worring about the runloop and double renders. More performant and fixes a bug when something inside gains the focus faster than the reposition.
- [BUGFIX] Don't focus the trigger again when the dropdown is closed as consecuence of clicking outside it.
- [ENHANCEMENT] Allow to add focusin/out events to the trigger
- [BUGFIX] Ensure that if the trigger receives
tabindex=null
it still defaults to 0.
- [BUGFIX] Ensure that the
aria-controls
attribute of the trigger points to the content by default.
- [BUGFIX] Focus the trigger when the component is closed
- [BUGFIX] Allow to attach
onFocusIn
andonFocusOut
event the the dropdown content component.
- [BUGFIX] Around half a docen regressions and changes, including add the proper classes to trigger and content when the component is rendered above/below/right/left/center/in-place. Now those cases are different between trigger and content for better granularity.
- [BREAKING CHANGE] Brand new API