Skip to content

Commit

Permalink
fix firefox strange behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
EstherPerelman committed Sep 29, 2021
1 parent a5181f1 commit 5770021
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/browser/view-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,7 @@ export class ViewContainer extends BaseWidget implements StatefulWidget, Applica
return new DisposableCollection(
addEventListener(part.headerElement, 'dragstart',
event => {
event.preventDefault();
const mimeData = new MimeData();
mimeData.setData('application/vnd.phosphor.view-container-factory', () => part);
const clonedHeader = part.headerElement.cloneNode(true) as HTMLElement;
Expand Down

0 comments on commit 5770021

Please sign in to comment.