-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
Repeater maxItems doesn't take effect for the first item #42
Comments
@LukeTowers is this is still occurring? I cannot replicate on a fresh copy of Winter. |
No idea. Will close. |
I'm afraid the issue is still there and happens exactly as it was described by @LukeTowers on the latest Winter release |
A possible fix |
This issue will be closed and archived in 3 days, as there has been no activity in this issue for the last 6 months. |
Fixed by #919 |
The issue is happening again because of wrong jQuery selector for the "Add" button. The fix was suggested here: |
When using repeater with maxItems=1, repeater does not work correctly. It adds one record and still shows the button to add one more. When you remove all records and start adding them again, the repeater works as expected.
Test with the Test Plugin using the Countries > Related repeater and setting maxItems: 1
plugins\winter\test\models\country\fields.yaml
Initial report by @GinoPane in octobercms/october#5533
The text was updated successfully, but these errors were encountered: