mirror of
https://github.com/kamranahmedse/driver.js.git
synced 2026-10-31 20:31:43 +08:00
Minor fix
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -214,7 +214,7 @@ export default class Element {
|
||||
|
||||
// Because if the element has any of these positions, making it
|
||||
// relative will break the UI
|
||||
return !avoidPositionsList.includes(currentPosition);
|
||||
return avoidPositionsList.indexOf(currentPosition) !== -1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user