message: fix(utils/rect): prevent resolveRectLike from returning given string value
  Close
diff: @@ -3,25 +3,17 @@ import extend from './extend'
  import * as is from './is'
  export function getStringOptionResult (value, interactable, element) {
  - if (!is.string(value)) {
  - return null
  - }
  + if (value === 'parent') { return parentNode(element) }
  - if (value === 'parent') {
  - value = parentNode(element)
  - }
  - else if (value === 'self') {
  - value = interactable.getRect(element)
  - }
  - else {
  - value = closest(element, value)
  - }
  + if (value === 'self') { return interactable.getRect(element) }
  - return value
  + return closest(element, value)
  }
  export function resolveRectLike (value, interactable?, element?, functionArgs?) {
  - value = getStringOptionResult(value, interactable, element) || value
  + if (is.string(value)) {
  + value = getStringOptionResult(value, interactable, element)
  + }
  if (is.func(value)) {
  value = value.apply(null, functionArgs)
  