diff --git a/package.json b/package.json index 3b053e3ddcc3f8ce5fc7b8715c63a6b8578528b0..27e5a08c169b6a177422b6837328f56956789a6b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-draggable-grid", - "version": "0.4.0", + "version": "0.4.1", "scripts": { "build": "vite build", "example:build": "vite build example", diff --git a/src/DragGrid.vue b/src/DragGrid.vue index c5e18ea21076747b760afadee24de2621f7bb567..36339bd6a04f865ffcf3b98b9660b8c847a56762 100644 --- a/src/DragGrid.vue +++ b/src/DragGrid.vue @@ -144,7 +144,7 @@ export default { }, methods: { positionAllowed(x, y, key) { - if (x < 0 || y < 0) return false; + if (x <=0 || y <= 0) return false; if (x > this.cols) return false; if (y > this.rows) return false;