Skip to content

Commit 8e8dddc

Browse files
Merge pull request #133 from djcain8/add_handleBlur_check
check for presence of self.button in handleBlur method
2 parents 04f61a8 + a6eece7 commit 8e8dddc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/createManager.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ const protoManager = {
114114
function handleBlur() {
115115
const self = this;
116116
self.blurTimer = setTimeout(function() {
117+
if (!self.button) return;
117118
const buttonNode = self.button.ref.current;
118119
if (!buttonNode) return;
119120
const activeEl = buttonNode.ownerDocument.activeElement;

0 commit comments

Comments
 (0)