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(toast): proper handling of autohide toggling #3283

Merged
merged 1 commit into from
Jul 15, 2019

Conversation

benouat
Copy link
Member

@benouat benouat commented Jul 10, 2019

Toasts initially setup with [autohide]="true"were wrongly still emitting (hide) output after toggling autohide to false.

A new demo has also been created to illustrate the autohide toggling support, 'Prevent autohide on mouseover'.

Fixes #3280

@codecov-io
Copy link

codecov-io commented Jul 10, 2019

Codecov Report

Merging #3283 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3283      +/-   ##
==========================================
+ Coverage   90.78%   90.78%   +<.01%     
==========================================
  Files          95       95              
  Lines        2713     2714       +1     
  Branches      508      508              
==========================================
+ Hits         2463     2464       +1     
  Misses        190      190              
  Partials       60       60
Flag Coverage Δ
#e2e 55.12% <0%> (-0.03%) ⬇️
#unit 87.9% <100%> (ø) ⬆️
Impacted Files Coverage Δ
src/toast/toast.ts 95.65% <100%> (+0.19%) ⬆️

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 cc29290...07c32ba. Read the comment docs.

Copy link
Member

@fbasso fbasso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your PR @benouat. I just left one comment, the other parts seems ok for me.

src/toast/toast.ts Outdated Show resolved Hide resolved
@benouat benouat force-pushed the fix/toast/autohide-toggling branch from fa66314 to 07c32ba Compare July 15, 2019 09:13
Toasts initially setup with `[autohide]="true"`were wrongly still
emitting `(hide)` output after toggling `autohide` to `false`.

A new demo has also been created to illustrate the `autohide` toggling
support, 'Prevent autohide on mouseover'.

Fixes ng-bootstrap#3280
@benouat benouat merged commit ffcdad4 into ng-bootstrap:master Jul 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changing the autoHide of a Toast not working
3 participants