Open futurist opened 2 years ago
this PR should fix: https://github.com/oyyd/youdao-collins-chrome-extension/issues/39
The logic retuned:
firstElementChild
null
INPUT
TEXTAREA
range.getBoundingClientRect
this PR should fix: https://github.com/oyyd/youdao-collins-chrome-extension/issues/39
The logic retuned:
firstElementChild
is empty, the returned value should be checked againstnull
INPUT
orTEXTAREA
, then fallback torange.getBoundingClientRect