CodeQL model editor: Don't highlight row when clicking inside text box (#3264)
This commit is contained in:
@@ -15,6 +15,10 @@ type Props = {
|
||||
"aria-label"?: string;
|
||||
};
|
||||
|
||||
const stopClickPropagation = (e: React.MouseEvent) => {
|
||||
e.stopPropagation();
|
||||
};
|
||||
|
||||
export const ModelTypeTextbox = ({
|
||||
modeledMethod,
|
||||
typeInfo,
|
||||
@@ -48,5 +52,12 @@ export const ModelTypeTextbox = ({
|
||||
500,
|
||||
);
|
||||
|
||||
return <VSCodeTextField value={value} onInput={handleChange} {...props} />;
|
||||
return (
|
||||
<VSCodeTextField
|
||||
value={value}
|
||||
onInput={handleChange}
|
||||
onClick={stopClickPropagation}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user