mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-06-05 13:10:41 +02:00
fix: instant string update through frontend
This commit is contained in:
parent
e8428e4a31
commit
4039d29f42
@ -49,7 +49,13 @@ export const StringComponent = React.memo((props: StringComponentProps) => {
|
|||||||
const handleChange = (event) => {
|
const handleChange = (event) => {
|
||||||
setInputString(event.target.value);
|
setInputString(event.target.value);
|
||||||
if (isInstantUpdate) {
|
if (isInstantUpdate) {
|
||||||
changeCallback(event.target.value);
|
changeCallback({
|
||||||
|
type: 'str',
|
||||||
|
value: event.target.value,
|
||||||
|
full_access_path: fullAccessPath,
|
||||||
|
readonly: readOnly,
|
||||||
|
doc: docString
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user