Skip to content

Commit

Permalink
fix: ignore document for firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
daybrush committed Aug 24, 2022
1 parent f43abbd commit db0c730
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export default class MoveableManager<T = {}>
* });
*/
public isMoveableElement(target: Element) {
return target && (target.getAttribute("class") || "").indexOf(PREFIX) > -1;
return target && (target.getAttribute?.("class") || "").indexOf(PREFIX) > -1;
}
/**
* You can drag start the Moveable through the external `MouseEvent`or `TouchEvent`. (Angular: ngDragStart)
Expand Down

0 comments on commit db0c730

Please sign in to comment.