mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-20 08:20:02 +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) => {
|
export const StringComponent = React.memo((props: StringComponentProps) => {
|
||||||
const {
|
const {
|
||||||
|
name,
|
||||||
readOnly,
|
readOnly,
|
||||||
docString,
|
docString,
|
||||||
isInstantUpdate,
|
isInstantUpdate,
|
||||||
@ -84,6 +85,7 @@ export const StringComponent = React.memo((props: StringComponentProps) => {
|
|||||||
</InputGroup.Text>
|
</InputGroup.Text>
|
||||||
<Form.Control
|
<Form.Control
|
||||||
type="text"
|
type="text"
|
||||||
|
name={name}
|
||||||
value={inputString}
|
value={inputString}
|
||||||
disabled={readOnly}
|
disabled={readOnly}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user