Skip to content

Commit df8499c

Browse files
GrooChuepicfaace
authored andcommitted
Encode checkbox settings in playground (rjsf-team#1403)
1 parent 21976bc commit df8499c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

playground/app.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,12 +384,14 @@ class App extends Component {
384384
this.setState({ formData, shareURL: null });
385385

386386
onShare = () => {
387-
const { formData, schema, uiSchema } = this.state;
387+
const { formData, schema, uiSchema, liveSettings } = this.state;
388388
const {
389389
location: { origin, pathname },
390390
} = document;
391391
try {
392-
const hash = btoa(JSON.stringify({ formData, schema, uiSchema }));
392+
const hash = btoa(
393+
JSON.stringify({ formData, schema, uiSchema, liveSettings })
394+
);
393395
this.setState({ shareURL: `${origin}${pathname}#${hash}` });
394396
} catch (err) {
395397
this.setState({ shareURL: null });

0 commit comments

Comments
 (0)