Skip to content

Commit

Permalink
Merge pull request #23 from Jevan5/master
Browse files Browse the repository at this point in the history
Dispatch position-change event on change
  • Loading branch information
Jevan5 committed Sep 23, 2020
2 parents 7552320 + 700ac8b commit 14c304b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions d2l-seek-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ Polymer({
},

_onTrack: function(event) {
this.dispatchEvent(new CustomEvent('position-change', { bubbles: true, composed: true }));
event.stopPropagation();
switch (event.detail.state) {
case 'start':
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
"homepage": "https://github.com/Brightspace/d2l-seek-bar",
"name": "@d2l/seek-bar",
"version": "1.0.1",
"version": "1.1.0",
"scripts": {
"lint": "npm run lint:wc && npm run lint:js",
"lint:js": "eslint . --ext .js,.html test/**/*.js test/**/*.html demo/**/*.js demo/**/*.html",
Expand Down

0 comments on commit 14c304b

Please sign in to comment.