Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximum call stack size exceeded with HiddenField #63

Closed
RSchwan opened this issue Jul 6, 2016 · 2 comments
Closed

Maximum call stack size exceeded with HiddenField #63

RSchwan opened this issue Jul 6, 2016 · 2 comments
Assignees
Labels
Type: Bug Bug reports and their fixes

Comments

@RSchwan
Copy link
Contributor

RSchwan commented Jul 6, 2016

If I have following Form:

<AutoForm schema={Divisions.schema} onSubmit={doc => console.log(doc)}>
  <HiddenField name="title" />
  <ErrorsField />
 </AutoForm>

I get following error:

Exception from Tracker recompute function: debug.js:41
RangeError: Maximum call stack size exceeded
    at RegExp.[Symbol.replace] (native)
    at RegExp.[Symbol.replace] (native)
    at String.replace (native)
    at underscore (http://localhost:3000/packages/aldeed_simple-schema.js?hash=a36531b7660faa5522e7fade0b3f4daf5b4b6641:98:19)
    at humanize (http://localhost:3000/packages/aldeed_simple-schema.js?hash=a36531b7660faa5522e7fade0b3f4daf5b4b6641:87:12)
    at inflectedLabel (http://localhost:3000/packages/aldeed_simple-schema.js?hash=a36531b7660faa5522e7fade0b3f4daf5b4b6641:1260:10)
    at Where.SimpleSchema.getDefinition (http://localhost:3000/packages/aldeed_simple-schema.js?hash=a36531b7660faa5522e7fade0b3f4daf5b4b6641:1826:30)
    at SimpleSchemaBridge.getField (http://localhost:3000/packages/modules.js?hash=c61c2aa9f4af54321862c6302c6fd8bc295730d8:42706:42)
    at HiddenField.getFieldProps (http://localhost:3000/packages/modules.js?hash=c61c2aa9f4af54321862c6302c6fd8bc295730d8:43310:40)
    at HiddenField.render (http://localhost:3000/packages/modules.js?hash=c61c2aa9f4af54321862c6302c6fd8bc295730d8:41903:30) string-humanize.js:34
Uncaught RangeError: Maximum call stack size exceeded[Symbol.replace] @ (program):566[Symbol.replace] @ (program):678replace @ (program):137underscore @ string-humanize.js:34humanize @ string-humanize.js:23inflectedLabel @ simple-schema.js:278SimpleSchema.getDefinition @ simple-schema.js:844getField @ modules.js?hash=c61c2aa…:42706getProps @ modules.js?hash=c61c2aa…:42745getFieldProps @ modules.js?hash=c61c2aa…:43312
@radekmie radekmie added the Type: Bug Bug reports and their fixes label Jul 6, 2016
@radekmie radekmie self-assigned this Jul 6, 2016
@radekmie
Copy link
Contributor

radekmie commented Jul 6, 2016

Okay, I'll try to do it even today.

@radekmie
Copy link
Contributor

radekmie commented Jul 6, 2016

It was easy - HiddenField was designed to force (in some way) a field value, so it went nuts without one. Go ahead, test it - I'll publish new version today or tomorrow.

@Monteth Monteth added this to Closed in Open Source (migrated) Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bug reports and their fixes
Projects
Archived in project
Development

No branches or pull requests

2 participants