Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ibek authored and lordrip committed Oct 14, 2024
1 parent 43c7f24 commit 42b5bac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/BaseForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ function Patternfly(parent: any): any {
static displayName = `Patternfly${parent.displayName}`;

render() {
const { key, props } = this.getNativeFormProps();
return (
<context.Provider value={this.getContext()}>
<Form data-testid="base-form" {...this.getNativeFormProps()} />
<Form key={key} data-testid="base-form" {...props} />
</context.Provider>
);
}
Expand Down

0 comments on commit 42b5bac

Please sign in to comment.