Skip to content

Commit

Permalink
Ignore mousedown event from text elements.
Browse files Browse the repository at this point in the history
  • Loading branch information
yansern committed Oct 3, 2017
1 parent 02b109e commit b8c0192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/multipane.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default {

methods: {
onMouseDown({ target: resizer, pageX: initialPageX, pageY: initialPageY }) {
if (resizer.className.match('multipane-resizer')) {
if (resizer.className && resizer.className.match('multipane-resizer')) {
let self = this;
let { $el: container, layout } = self;

Expand Down

0 comments on commit b8c0192

Please sign in to comment.