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

Calendar fields inside repeatable fields don't work when added using the top [+] button on an existing field #19500

Closed
aDaneInSpain opened this issue Jan 31, 2018 · 4 comments

Comments

@aDaneInSpain
Copy link
Contributor

aDaneInSpain commented Jan 31, 2018

Steps to reproduce the issue

  1. Create a component with a repeatable calendar field or install the attached component. com_repeteable-1.0.0.zip
  2. Add two or more calendar fields
  3. Click save and Close
  4. Edit the field again
  5. Add another calendar field by clicking the top green plus button
  6. Attempt to select a date in the newly added field

image

Expected result

The date selector shows

Actual result

Nothing happens. The date selector does not load

System information (as much as possible)

Joomla 3.8.3
Example component created with Component Creator

Additional comments

Please note that clicking on the top green [+] button when first adding fields works. It is only when editing the item that the problem occurs.

Please also note that clicking on the green [+] buttons next to existing fields does work.

@prandini
Copy link

I'm face almost the same problem,
when I click on top [+] button to add new row, just one row is add, and the others buttons [+] and [-] does not work anymore.

To fix i chose the layout, layout="joomla.form.field.subform.repeatable", it's no the best solution but works fine for me.

@aDaneInSpain did you find some solution for your issue?

@Quy
Copy link
Contributor

Quy commented Feb 21, 2018

Similar to #16480.

The first + button creates a row with X in the id jform_datesselect__datesselectX__init_date.
The other + buttons create rows correctly with id incremented jform_datesselect__datesselect2__init_date.

@Fedik Can you please take a look? Thanks.

@Fedik
Copy link
Member

Fedik commented Feb 24, 2018

there is a fix #19774

@joomla-cms-bot
Copy link

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/19500

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants