Skip to content

Commit f172512

Browse files
reverting local changes on controlstest.tsx for issue 1571 & 1171
1 parent 2276c80 commit f172512

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/webparts/controlsTest/components/ControlsTest.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -928,16 +928,14 @@ export default class ControlsTest extends React.Component<IControlsTestProps, IC
928928

929929
return (
930930
<div className={styles.controlsTest}>
931-
932-
933931
<div className="ms-font-m">
934932
{/* Change the list Id and list item id before you start to test this control */}
935-
<DynamicForm
936-
context={this.props.context}
937-
listId={"1c2e8fb9-e604-4f30-8055-10b465b42921"}
938-
listItemId={7}
939-
onCancelled={() => { console.log('Cancelled'); }}
940-
onSubmitted={async (listItem) => { /*let itemdata = await listItem.get();*/ console.log(listItem); }}></DynamicForm>
933+
<DynamicForm context={this.props.context} listId={"8d26295d-c532-47c6-a2c5-d6e79c2ef523"} onCancelled={() => { console.log('Cancelled'); }} onSubmitted={async (listItem) => { let itemdata = await listItem.get(); console.log(itemdata["ID"]); }}></DynamicForm>
934+
</div>
935+
<div className="ms-font-m">
936+
{/* Change the list Id and list item id before you start to test this control */}
937+
{/* This DynamicForm display a dialog message when validation fails */}
938+
<DynamicForm context={this.props.context} listId={"8d26295d-c532-47c6-a2c5-d6e79c2ef523"} onCancelled={() => { console.log('Cancelled'); }} onSubmitted={async (listItem) => { let itemdata = await listItem.get(); console.log(itemdata["ID"]); }} validationErrorDialogProps={{showDialogOnValidationError: true}}></DynamicForm>
941939
</div>
942940
<WebPartTitle displayMode={this.props.displayMode}
943941
title={this.props.title}

0 commit comments

Comments
 (0)