mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-04 13:08:41 +08:00
Merge pull request #16918 from oakslab/master
fix: cascader unable to enter space during search #16871
This commit is contained in:
commit
7c0fd87b2b
@ -292,7 +292,8 @@ class Cascader extends React.Component<CascaderProps, CascaderState> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {
|
handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {
|
||||||
if (e.keyCode === KeyCode.BACKSPACE) {
|
// SPACE => https://github.com/ant-design/ant-design/issues/16871
|
||||||
|
if (e.keyCode === KeyCode.BACKSPACE || e.keyCode === KeyCode.SPACE) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user