Skip to content

Commit

Permalink
Add onChange to update elements in local state within custom code (#214)
Browse files Browse the repository at this point in the history
* Add onChange to update elements in local state within custom code

* Update CHANGELOG.md

---------

Co-authored-by: Mikhail <mikhail@volkovlabs.io>
  • Loading branch information
asimonok and mikhail-vl authored Jul 26, 2023
1 parent 2c57518 commit 6c59a5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Features / Enhancements

- Update jest selectors to use npm package (#209)
- Add onChange to update elements in local state within custom code (#214)

## 3.0.0 (2023-07-15)

Expand Down
2 changes: 2 additions & 0 deletions src/components/FormPanel/FormPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export const FormPanel: React.FC<Props> = ({
'data',
'response',
'elements',
'onChange',
'locationService',
'templateService',
'onOptionsChange',
Expand All @@ -143,6 +144,7 @@ export const FormPanel: React.FC<Props> = ({
data,
response,
elements,
onChangeElements,
locationService,
templateSrv,
onOptionsChange,
Expand Down

0 comments on commit 6c59a5c

Please sign in to comment.