Skip to content
Snippets Groups Projects
Commit 3fc65b0f authored by Julian's avatar Julian
Browse files

Fix field validation in positionAllowed

parent e7943167
No related branches found
No related tags found
1 merge request!39Resolve "Bug: positionAllowed allows fields outside the grid"
Pipeline #197873 failed
{
"name": "vue-draggable-grid",
"version": "0.4.0",
"version": "0.4.1",
"scripts": {
"build": "vite build",
"example:build": "vite build example",
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment