mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-20 08:20:02 +02:00
prevents Enter key within StringComponent to submit form in MethodComponent
This commit is contained in:
parent
ceed62c8f2
commit
f8926ea823
@ -64,6 +64,7 @@ export const StringComponent = React.memo((props: StringComponentProps) => {
|
|||||||
const handleKeyDown = (event) => {
|
const handleKeyDown = (event) => {
|
||||||
if (event.key === 'Enter' && !isInstantUpdate) {
|
if (event.key === 'Enter' && !isInstantUpdate) {
|
||||||
changeCallback(inputString);
|
changeCallback(inputString);
|
||||||
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user