We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da64e92 commit 5487062Copy full SHA for 5487062
src/types/label.js
@@ -221,7 +221,7 @@ function getCalloutSideAdjust(position, options) {
221
222
function resolveCalloutPosition(element, options) {
223
const position = options.position;
224
- if (position === 'left' || position === 'right' || position === 'top' || position === 'bottom') {
+ if (positions.includes(position)) {
225
return position;
226
}
227
return resolveCalloutAutoPosition(element, options);
0 commit comments