Skip to content

Commit

Permalink
revert(components): pr #9514
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode committed Mar 30, 2022
1 parent 5a923f4 commit 48ae962
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable no-case-declarations */
/* eslint-disable no-void */
/* eslint-disable no-return-assign */
import Taro from '@tarojs/taro'
import { createSelectorQuery } from '@tarojs/taro'
import { getRTLOffsetType } from '../domHelpers'
import { memoizeOne } from '../memoize'
import { createElement, PureComponent } from 'react'
Expand All @@ -22,7 +22,7 @@ export function isRtlFunc ({ direction }) {
return direction === 'rtl'
}
export function getRectSize (id, success = () => {}, fail = () => {}) {
const query = Taro.createSelectorQuery()
const query = createSelectorQuery()
query.select(id).boundingClientRect((res) => {
if (res) {
success(res)
Expand Down

0 comments on commit 48ae962

Please sign in to comment.