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

teamform: Switch to contributte/multiplier #76

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jtojnar
Copy link
Owner

@jtojnar jtojnar commented Feb 11, 2023

kdyby/replicator served us well for a long time but unfortunately, it has been unmaintained for a while now. Let’s switch to an actively maintained library.

Multiplier manages adding and removing for us and handles default values correctly.

Currently, we cannot control per-category person limits at submission.

Supersedes: #58

@jtojnar jtojnar force-pushed the contributte-multiplier-2 branch 2 times, most recently from 3df826e to 2e73698 Compare February 11, 2023 21:42
jtojnar added 3 commits April 3, 2023 20:43
`Container::addDynamic` from `Kdyby/Replicator` would only run the closure passed to it after the form is attached.
This is not the case with `contributte/forms-multiplier`, which runs it during creation, which would result in throwing the following `InvalidStateException`:

    Component 'registry_address' is not attached to 'Nette\Forms\Form'.

Let’s wait until the form is attached before trying to obtain the input’s id.
`kdyby/replicator` served us well for a long time but unfortunately,
it has been unmaintained for a while now.
Let’s switch to an actively maintained library.

Multiplier manages adding and removing for us and handles
default values correctly.

Currently, the per-category minimum person limits will not prevent submission.
@jtojnar jtojnar force-pushed the contributte-multiplier-2 branch from 2e73698 to 420a8e6 Compare April 4, 2023 01:02
@Tojnar Tojnar added this to the 0.7.0 milestone Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants