Pass attribute key to attribute editors (#2818)

Signed-off-by: Denis Bunakalya <denis.bunakalya@xored.com>
This commit is contained in:
Denis Bunakalya 2023-03-23 13:48:34 +03:00 committed by GitHub
parent 9cb86c65b8
commit 9cccca0a45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 0 deletions

View File

@ -74,6 +74,7 @@
justify={'left'}
type={attribute?.type}
{maxWidth}
{attributeKey}
value={getAttribute(client, object, { key: attributeKey, attr: attribute })}
space={object.space}
{onChange}
@ -87,6 +88,7 @@
this={instance}
type={attribute?.type}
{maxWidth}
{attributeKey}
value={getAttribute(client, object, { key: attributeKey, attr: attribute })}
readonly={isReadonly}
space={object.space}

View File

@ -62,6 +62,7 @@
placeholder={attribute?.label}
type={attribute?.type}
{maxWidth}
{attributeKey}
value={getAttribute(client, object, { key: attributeKey, attr: attribute })}
{onChange}
{focus}

View File

@ -67,6 +67,7 @@
justify={'left'}
type={attribute?.type}
{maxWidth}
{attributeKey}
value={getAttribute(client, object, { key: attributeKey, attr: attribute })}
space={object.space}
{onChange}