I have a multiple subform; in it there is a "Combo" field.
When I try to open the field list, it works only for the first instance; the other ones doesn't have the related event handler attached.
I use Joomla 3.9.0 (latest release)
Status | New | ⇒ | Information Required |
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-03-16 07:02:47 |
Closed_By | ⇒ | franz-wohlkoenig |
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/23077
Closed as no Answer, please reopen if needed.
I'm experiencing this same problem on 3.9.11
Any fix for this?
Thanks
The bug is still present in Joomla! 3.9.15 using the protostar default layout.
Form xml example:
<field name="test"
type="repeatable"
icon="list"
description="test_desc"
label="test_label"
>
<fieldset hidden="true" name="repeatable_test" repeat="true">
<field name="description"
label="description_label"
size="30"
type="combo">
<option value="1">test 1</option>
<option value="2">test 2</option>
</field>
</fieldset>
</field>
This is the result:
Clicking on the "arrow icon" doesn't do anything (neither the first time).
Moreover, neither the combo field type with the multiple attribute actually works: it ignores the attribute.
XML example:
<field name="test_combo"
label="test_combo_label"
multiple="true"
size="30"
type="combo">
<option value="1">test 1</option>
<option value="2">test 2</option>
</field>
Finally, using a combo field type inside a subform with multiple attribute, doesn't work: the first instance works properly, but the following ones don't (clicking the arrow doesn't open the option list).
XML example:
<field
name="test_combo"
multiple="true"
type="subform"
formsource="components/com_test/models/forms/subform.xml"
label="test_combo_lbl"
description="test_combo_desc"
min="1"
buttons="add,remove"
required="true"
/>
and in the subform.xml file:
<form>
<fields>
<field name="test_combo"
label="test_combo_label"
multiple="true"
size="30"
type="combo">
<option value="1">test 1</option>
<option value="2">test 2</option>
</field>
</fields>
</form>
@joomla-cms-bot can you re-open?
Title |
|
Title |
|
No fix, apparently no one cares, but in the meantime you can put this js in your template
jQuery(document).ready(function($) {
$(document).on("subform-row-add", function(e, row) {
$(row).find("div.combobox").ComboTransform();
});
});
Status | Closed | ⇒ | New |
Closed_Date | 2019-03-16 07:02:47 | ⇒ | |
Closed_By | joomla-cms-bot | ⇒ |
No fix, apparently no one cares, but in the meantime you can put this js in your template
jQuery(document).ready(function($) { $(document).on("subform-row-add", function(e, row) { $(row).find("div.combobox").ComboTransform(); }); });
Thank you, it works with this fix!
Thank you for raising this issue.
Joomla 3 is now in security only mode with no further bug fixes or new features.
As this issue doesn't relate to Joomla 4 it will now been closed.
If we are mistaken and this does apply to Joomla 4 please open a new issue (and reference this one if you wish) with updated details for testing in Joomla 4.
cc @zero-24
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-08-26 06:23:05 |
Closed_By | ⇒ | alikon | |
Labels |
Added:
No Code Attached Yet
Removed: ? |
can you please test on latest Release 3.9.3
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23077.