mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-20 00:10:03 +02:00
fixes StringComponent for use as method argument (adds name to control form)
This commit is contained in:
parent
2d98ba51f4
commit
5313ef6e8c
@ -26,6 +26,7 @@ type StringComponentProps = {
|
||||
|
||||
export const StringComponent = React.memo((props: StringComponentProps) => {
|
||||
const {
|
||||
name,
|
||||
readOnly,
|
||||
docString,
|
||||
isInstantUpdate,
|
||||
@ -84,6 +85,7 @@ export const StringComponent = React.memo((props: StringComponentProps) => {
|
||||
</InputGroup.Text>
|
||||
<Form.Control
|
||||
type="text"
|
||||
name={name}
|
||||
value={inputString}
|
||||
disabled={readOnly}
|
||||
onChange={handleChange}
|
||||
|
Loading…
x
Reference in New Issue
Block a user