Skip to content

Commit 4c1a517

Browse files
committed
fix move tool bug after using accessibility tool
1 parent 235600a commit 4c1a517

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/features/accessibility.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,10 @@ const tip_position = (node, e, north, west) => ({
250250
: e.pageX - 21}px`,
251251
})
252252

253-
const handleBlur = ({target}) => {
254-
if (!target.hasAttribute('data-allytip') && state.tips.has(target))
255-
wipe(state.tips.get(target))
253+
const handleBlur = e => {
254+
if (!e) return
255+
if (!e.target.hasAttribute('data-allytip') && state.tips.has(e.target))
256+
wipe(state.tips.get(e.target))
256257
}
257258

258259
const wipe = ({tip, e:{target}}) => {

0 commit comments

Comments
 (0)