Skip to content

Commit

Permalink
delayOnChange default changed to true
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncan Graham Walker committed May 22, 2016
1 parent c5a69b7 commit aca1a53
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ This does not affect the hiding of the tooltip. See also, [delayOnChange](#delay

| Type | Boolean |
|---------|---------|
| Default | false |
| Default | true |

Whether or not to enforce the delay even when the user transitions their cursor between multiple target elements with tooltips.

Expand Down
2 changes: 1 addition & 1 deletion addon/components/tooltip-on-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default EmberTetherComponent.extend({
/* Options */

delay: 0,
delayOnChange: false,
delayOnChange: true,
duration: 0,
effect: 'slide', // fade, slide, none
event: 'hover', // hover, click, focus, none
Expand Down
4 changes: 4 additions & 0 deletions tests/dummy/app/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,7 @@ h3 {
hr {
@include rem(margin, 6, 0);
}

input {
@include rem(padding, 0.4, 0.6);
}
2 changes: 1 addition & 1 deletion tests/integration/components/delay-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test('It animates with delay passed as a number', function(assert) {
this.$().trigger('mouseover');
});

/* Check the tooltip is shwon after the correct delay */
/* Check the tooltip is shown after the correct delay */

run.later(() => {
assertHide(assert, this);
Expand Down

0 comments on commit aca1a53

Please sign in to comment.