Skip to content

Commit

Permalink
Always use [drag-content] in slot
Browse files Browse the repository at this point in the history
  • Loading branch information
vorph1 committed Jul 30, 2018
1 parent c42bb4a commit 4699c26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drag-resize.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ class DragResize extends GestureEventListeners(PolymerElement) {
let slot = this.shadowRoot.querySelector('slot');
this._observer = new FlattenedNodesObserver(slot,
info => {
this.box = slot.assignedNodes({flatten:true})
.filter(n => n.nodeType === Node.ELEMENT_NODE)[0];
this.box = slot.assignedElements({flatten:true})
.filter(n => n.hasAttribute('drag-content'))[0];

if (typeof this.top != "undefined")
this.initialTop = this.top;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"touch"
],
"name": "drag-resize",
"version": "1.5.0",
"version": "1.6.0",
"resolutions": {
"inherits": "2.0.3",
"samsam": "1.1.3",
Expand Down

0 comments on commit 4699c26

Please sign in to comment.