mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
fix(ui): check for string className when handling clicks in filter input
For SVG elements there might be no className attribute so split() might raise an exception
This commit is contained in:
@@ -97,7 +97,10 @@ const FilterInput = observer(
|
||||
});
|
||||
|
||||
onInputClick = (inputReference, event) => {
|
||||
if (event.target.className.split(" ").includes("form-control")) {
|
||||
if (
|
||||
typeof event.target.className === "string" &&
|
||||
event.target.className.split(" ").includes("form-control")
|
||||
) {
|
||||
inputReference.input.focus();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user