Closed thomas-topway-it closed 10 months ago
Thanks for investigating!
I see there are some errors on tests, they shouldn't be related to the pull request, however, since there aren't PHP edits
is it related to the edit ?
ah, I see
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
bff14a0
) 11.68% compared to head (bce66c3
) 11.68%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
After this change, on a page with existing instances, instances can not be added or removed using the "instanceAddAbove" / "instanceRemove" buttons. No JS errors. To reproduce, create a page, add instances, save, edit again, try to remove an existing instance.
Yes, I can also reproduce this. You can add other instances, there the "add above" button works, but with existing values, you cannot add someting above.
I did an edit. I will double check tomorrow.
Thank you. It is working for me now.
Confirmed working. @krabina is your issue mentioned in #53 also fixed now?
yes!
fixes https://github.com/gesinn-it-pub/mediawiki-extensions-PageForms/issues/53 (Combobox shows 2 dropdowns with multi-instance template)
although there are other solutions, like to add
.not('.pfComboBox .oo-ui-inputWidget-input')
to the jQuery selector, the proposed solution is more general and prevents similar issues for other form inputs