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

Validation messages not showing - SimpleSchema 3.x #1722

Open
mslobodan opened this issue Oct 21, 2022 · 4 comments
Open

Validation messages not showing - SimpleSchema 3.x #1722

mslobodan opened this issue Oct 21, 2022 · 4 comments
Labels
dependencies Pull requests that update a dependency file discussion will accept pull request
Milestone

Comments

@mslobodan
Copy link

Problem

I have created a simple Meteor project and added a form. The problem is that validation errors are not showing after submitting.

We are using:

  1. aldeed:autoform,
  2. aldeed:collection2,
  3. communitypackages:autoform-bootstrap4 and
  4. npm package simpl-schema

To Reproduce

  1. Clone simple repository https://github.com/mslobodan/autoform-validation-issue
  2. install dependencies with meteor npm install
  3. start project with meteor command

Expected behavior

If form is not populated and after Submit button is clicked I should see validation error below input fields.

Versions

  • Meteor version: 2.7.3
  • Browser: Firefox, Chrome
@jankapunkt
Copy link
Member

Hi @mslobodan thank your for submitting an issue. I am checking out your linked repository right now and get back to you afterwards.

@jankapunkt
Copy link
Member

@mslobodan the problem is that SimpleSchema removed Meteor support with version 3 and therefore your { tracker: Tracker } has no effect at all, which results in the messages not being shown reactively.

Downgrading to simple schema @1.13.1 solves the issue. However this is a problem now, because I am not sure how we can work this out.

@mslobodan
Copy link
Author

@jankapunkt Thank you for investigating this and for your explanation! 😄

@jankapunkt jankapunkt changed the title Validation messages not showing Validation messages not showing - SimpleSchema 3.x Apr 4, 2023
@jankapunkt jankapunkt added this to the v8 milestone Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file discussion will accept pull request
Projects
None yet
Development

No branches or pull requests

2 participants