Skip to content

Commit 26c9a73

Browse files
committed
FIX: in method "handleOnControlMouseDown" of "Select.tsx" component - change check from e.currentTarget.tagName to e.target.nodeName (using currentTarget only returns the element for which the eventListener is attached to and we need to determine which element the mousedown event was triggered on, truly).
1 parent c690d59 commit 26c9a73

19 files changed

+56
-61
lines changed

.storybook/preview.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ import ReactDOM from 'react-dom';
22
import { GlobalStyle } from './global-style';
33

44
// Configure createGlobalStyle for styled-components
5-
const GS_NODE_ID = 'temp2-global-style';
5+
const gsNodeId = 'temp2-global-style';
66

7-
const GS_NODE =
8-
document.getElementById(GS_NODE_ID) ||
7+
const gsNode =
8+
document.getElementById(gsNodeId) ||
99
(() => {
1010
const el = document.createElement('div');
11-
el.id = GS_NODE_ID;
11+
el.id = gsNodeId;
1212
document.head.appendChild(el);
1313
return el;
1414
})();
1515

1616
// Callback to remove node used to mount GlobalStyle to
1717
const rendererCallbackFn = () => {
18-
GS_NODE && document.head.removeChild(GS_NODE);
18+
gsNode && document.head.removeChild(gsNode);
1919
};
2020

2121
// Mount GlobalStyle to gsNode and then execute callback rendererCallbackFn()
22-
ReactDOM.render(<GlobalStyle />, GS_NODE, rendererCallbackFn);
22+
ReactDOM.render(<GlobalStyle />, gsNode, rendererCallbackFn);

docs/asset-manifest.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"files": {
3-
"main.js": "./main.19f16206.iframe.bundle.js",
3+
"main.js": "./main.42c8e3db.iframe.bundle.js",
44
"runtime~main.js": "./runtime~main.f398e60b.iframe.bundle.js",
5-
"vendors~main.js": "./vendors~main.31a06b8d.iframe.bundle.js",
6-
"vendors~main.js.map": "./vendors~main.31a06b8d.iframe.bundle.js.map",
5+
"vendors~main.js": "./vendors~main.2114af7b.iframe.bundle.js",
6+
"vendors~main.js.map": "./vendors~main.2114af7b.iframe.bundle.js.map",
77
"iframe.html": "./iframe.html",
8-
"vendors~main.31a06b8d.iframe.bundle.js.LICENSE.txt": "./vendors~main.31a06b8d.iframe.bundle.js.LICENSE.txt"
8+
"vendors~main.2114af7b.iframe.bundle.js.LICENSE.txt": "./vendors~main.2114af7b.iframe.bundle.js.LICENSE.txt"
99
},
1010
"entrypoints": [
1111
"runtime~main.f398e60b.iframe.bundle.js",
12-
"vendors~main.31a06b8d.iframe.bundle.js",
13-
"main.19f16206.iframe.bundle.js"
12+
"vendors~main.2114af7b.iframe.bundle.js",
13+
"main.42c8e3db.iframe.bundle.js"
1414
]
1515
}

docs/iframe.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,4 @@
130130

131131

132132

133-
window['FRAMEWORK_OPTIONS'] = {"fastRefresh":true};</script><script src="runtime~main.f398e60b.iframe.bundle.js"></script><script src="vendors~main.31a06b8d.iframe.bundle.js"></script><script src="main.19f16206.iframe.bundle.js"></script></body></html>
133+
window['FRAMEWORK_OPTIONS'] = {"fastRefresh":true};</script><script src="runtime~main.f398e60b.iframe.bundle.js"></script><script src="vendors~main.2114af7b.iframe.bundle.js"></script><script src="main.42c8e3db.iframe.bundle.js"></script></body></html>

docs/main.19f16206.iframe.bundle.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/main.42c8e3db.iframe.bundle.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/vendors~main.31a06b8d.iframe.bundle.js renamed to docs/vendors~main.2114af7b.iframe.bundle.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/vendors~main.31a06b8d.iframe.bundle.js.LICENSE.txt renamed to docs/vendors~main.2114af7b.iframe.bundle.js.LICENSE.txt

File renamed without changes.

docs/vendors~main.2114af7b.iframe.bundle.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/vendors~main.31a06b8d.iframe.bundle.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@
3737
"functional"
3838
],
3939
"devDependencies": {
40-
"@babel/cli": "^7.13.14",
41-
"@babel/core": "^7.13.15",
40+
"@babel/cli": "^7.13.16",
41+
"@babel/core": "^7.13.16",
4242
"@babel/plugin-proposal-object-rest-spread": "^7.13.8",
4343
"@babel/plugin-proposal-optional-chaining": "^7.13.12",
4444
"@babel/plugin-transform-runtime": "^7.13.15",
4545
"@babel/preset-env": "^7.13.15",
4646
"@babel/preset-react": "^7.13.13",
4747
"@babel/preset-typescript": "^7.13.0",
48-
"@babel/runtime": "^7.13.10",
48+
"@babel/runtime": "^7.13.17",
4949
"@rollup/plugin-babel": "^5.3.0",
5050
"@rollup/plugin-replace": "^2.4.2",
5151
"@rollup/plugin-typescript": "^8.2.1",
@@ -55,7 +55,7 @@
5555
"@storybook/react": "^6.2.8",
5656
"@testing-library/jest-dom": "^5.11.10",
5757
"@testing-library/react": "^11.2.6",
58-
"@testing-library/user-event": "^13.1.4",
58+
"@testing-library/user-event": "^13.1.5",
5959
"@types/jest": "^26.0.22",
6060
"@types/node": "^14.14.41",
6161
"@types/react": "^17.0.3",

0 commit comments

Comments
 (0)