react-admin icon indicating copy to clipboard operation
react-admin copied to clipboard

UUID () in <TabbedForm> results in endless Warning: performUpdateIfNecessary: Unexpected batch number

Open Balipeace opened this issue 9 years ago • 1 comments

In SimpleForm UUID () works great. In TabbedForm it results in endless Warning: . Ending in Uncaught RangeError: Maximum call stack size exceeded.

export const BatchCreate = (props) => (
    <Create {...props}>
      <TabbedForm>
            <FormTab label="resources.batches.tabs.tab1">
		    <DisabledInput source="id" defaultValue={() => uuidv1()}/>
                    <TextInput source="batchcode" style={detailStyle} />
	    </FormTab>
            <FormTab label="resources.batches.tabs.tab2">
                    <ReferenceInput`` label="Spawn" source="spawnid" reference="Spawns"  style={{ display: 'inline-block', marginLeft: 5 }} elStyle={{ width: '5em' }}  allowEmpty>
		    <SelectInput optionText ="spawncode" />
		    </ReferenceInput>
            </FormTab>
	   <FormTab label="resources.batches.tabs.note">
	   	    <LongTextInput source="note" />
            </FormTab>
        </TabbedForm>
    </Create>
);

"version": "1.2.2", "uuid": "^3.1.0" "react": "~15.5.4",

Balipeace avatar Aug 12 '17 05:08 Balipeace

This has been fixed in the next branch with #913

djhi avatar Aug 14 '17 08:08 djhi