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

[repeater-field_type] Nested repeaters js issues #4057

Closed
samharrison7 opened this issue Jan 19, 2017 · 1 comment
Closed

[repeater-field_type] Nested repeaters js issues #4057

samharrison7 opened this issue Jan 19, 2017 · 1 comment
Labels
Bug Confirmed existing bug

Comments

@samharrison7
Copy link

When using nested repeaters (a repeater in a repeater), clicking the "Add row" button fires the add row click event twice so you get two new rows added instead of one. I can't figure out why this is happening. Changing line 148 of input.js from wrapper.find('.add-row').click(function (e) { to wrapper.find('.add-row').off('click').click(function (e) { stops it being fired twice for the nested repeater, but it's still fired twice if the top level "Add row" is clicked (one new row appears inside the nested repeater, and one where it should in the parent repeater).

Also, the drag and drop doesn't work for the nested repeater as you can only place them in the top level repeater (i.e., on the display, the nested repeater ends up displaying as the top level repeater).

repeater

@RyanThompson
Copy link
Member

That's a feature. It doubles your productivity :trollface:

@RyanThompson RyanThompson added the Bug Confirmed existing bug label Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed existing bug
Projects
None yet
Development

No branches or pull requests

2 participants