Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix dropdown missing outputs / emits on toggle, include & fix tests #1916

Closed

Conversation

trimeyko
Copy link

Fixes #1915

added isOpenChange output to directive, added emits on show/hide for onShown/onHidden ( I'm not sure we should emit there something, in component loader componentRef.instance emitted btw.

moved spec file to spec/ folder & fixed tests, added few, removed tests related to dropdown-toggle class since it's not actual according to docs.

PS: currently there are no easy way to knew when dropdown is open/closed and no container are set for user, because no outputs provided, also that quite hard to close it programatically since isOpen on context is desynced with inner one only using various workarounds. Would be great if build will be available after we fix that.

@codecov
Copy link

codecov bot commented Apr 19, 2017

Codecov Report

Merging #1916 into development will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #1916      +/-   ##
===============================================
- Coverage        85.93%   85.92%   -0.02%     
===============================================
  Files               78       86       +8     
  Lines             2098     2280     +182     
  Branches           273      292      +19     
===============================================
+ Hits              1803     1959     +156     
- Misses             202      222      +20     
- Partials            93       99       +6
Impacted Files Coverage Δ
src/dropdown/bs-dropdown.directive.ts 84.21% <100%> (ø)
src/dropdown/bs-dropdown-container.component.ts 53.84% <0%> (ø)
src/dropdown/index.ts 100% <0%> (ø)
src/dropdown/bs-dropdown-menu.directive.ts 100% <0%> (ø)
src/dropdown/bs-dropdown.module.ts 93.33% <0%> (ø)
src/dropdown/bs-dropdown.state.ts 100% <0%> (ø)
src/dropdown/bs-dropdown-toggle.directive.ts 87.09% <0%> (ø)
src/dropdown/bs-dropdown.config.ts 80% <0%> (ø)
src/component-loader/component-loader.class.ts 90.62% <0%> (+1.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 60fe034...9ed3209. Read the comment docs.

@IlyaSurmay
Copy link
Contributor

IlyaSurmay commented May 30, 2017

Thanks for PR! Outputs were added in #2006 and #1951

@IlyaSurmay IlyaSurmay closed this May 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dropdown miss isOpen output, onShown / onHidden outputs emits only on body container
2 participants