NPM Resource Changed PR-6.0-dev Pending

User tests: Successful: Unsuccessful:

avatar krishnagandhicode
krishnagandhicode
4 Apr 2026

Pull Request resolves #47507

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

This fixes a Joomla 6 regression where the category field on New Article looks empty, even though a category is already selected. I updated the joomla-field-fancy-select so that, right after Choices initializes, it picks up any preselected <select> value and shows it in the UI. (same expected UX as previous versions j5.4 etc)

Testing Instructions

Navigate to: administrator > content > Articles > create a new article

Actual result BEFORE applying this Pull Request

The Category field render as empty on New Article, even though a category was selected and used on save. (ie if you only give that article a name and click on save without specifying any category - and then you open the article you see preslected/default category(uncategorized) is assigned to it )

Expected result AFTER applying this Pull Request

The Category field shows the preselected value and existing save behavior remains same.

Link to documentations

Please select:

  • Documentation link for guide.joomla.org:

  • No documentation changes for guide.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar krishnagandhicode krishnagandhicode - open - 4 Apr 2026
avatar krishnagandhicode krishnagandhicode - change - 4 Apr 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Apr 2026
Category JavaScript Repository NPM Change
avatar HLeithner
HLeithner - comment - 4 Apr 2026

@Fedik can you please double check.

avatar hiteshm0 hiteshm0 - test_item - 4 Apr 2026 - Tested successfully
avatar hiteshm0
hiteshm0 - comment - 4 Apr 2026

I have tested this item ✅ successfully on 95041e0

I have observed the before and after mentioned in the testing instructions.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47546.

avatar Fedik
Fedik - comment - 5 Apr 2026

Sorry, the fix is wrong.
It looks like a bug in Choices.js side, and related to <select> behavior.

On our side we can maybe do a workaround and set first element selected but not how it done in the PR.

avatar krishnagandhicode
krishnagandhicode - comment - 5 Apr 2026

Sorry, the fix is wrong. It looks like a bug in Choices.js side, and related to <select> behavior.

On our side we can maybe do a workaround and set first element selected but not how it done in the PR.

Thanks for the clarification, @Fedik - Will rework this to a narrower workaround and avoid broad behavior changes

avatar krishnagandhicode krishnagandhicode - change - 6 Apr 2026
Labels Added: NPM Resource Changed PR-6.0-dev
avatar krishnagandhicode
krishnagandhicode - comment - 6 Apr 2026

@Fedik

Updated : removed the post init value sync and switched to a narrower select side workarround. Now before Choices initialization for single-select fields only the first option is marked as selected when no option has a selected attribute

avatar Fedik
Fedik - comment - 6 Apr 2026

Yes, that looks better now.
Please add the comment above the changes with description why this workaround was add for a developers from future.

Then it can be tested.

avatar krishnagandhicode
krishnagandhicode - comment - 6 Apr 2026

Yes, that looks better now. Please add the comment above the changes with description why this workaround was add for a developers from future.

Then it can be tested.

Sure - It's done : )

avatar exlemor exlemor - test_item - 7 Apr 2026 - Tested successfully
avatar exlemor
exlemor - comment - 7 Apr 2026

I have tested this item ✅ successfully on dbf0457

I have successfully tested this PR. Thanks @krishnagandhicode!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47546.

avatar BeginnerJoomlaCom BeginnerJoomlaCom - test_item - 8 Apr 2026 - Tested successfully
avatar BeginnerJoomlaCom
BeginnerJoomlaCom - comment - 8 Apr 2026

I have tested this item ✅ successfully on dbf0457

Thanks @krishnagandhicode for the Pull Request.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47546.

avatar richard67 richard67 - change - 9 Apr 2026
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 9 Apr 2026

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47546.

avatar bembelimen bembelimen - change - 15 Apr 2026
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2026-04-15 06:25:19
Closed_By bembelimen
Labels Added: RTC
avatar bembelimen bembelimen - close - 15 Apr 2026
avatar bembelimen
bembelimen - comment - 15 Apr 2026

Sorry my fault, missed this PR when deleting the branch.

avatar bembelimen bembelimen - change - 15 Apr 2026
Status Closed New
Closed_Date 2026-04-15 06:25:19
Closed_By bembelimen
Labels Removed: RTC
avatar bembelimen bembelimen - change - 15 Apr 2026
Status New Pending
avatar bembelimen bembelimen - reopen - 15 Apr 2026
avatar tecpromotion tecpromotion - change - 15 Apr 2026
Title
[6.0] Show preselected value in fancy select
[6.1] Show preselected value in fancy select
avatar tecpromotion tecpromotion - edited - 15 Apr 2026
avatar adarshdubey03 adarshdubey03 - test_item - 23 Apr 2026 - Tested successfully
avatar adarshdubey03
adarshdubey03 - comment - 23 Apr 2026

I have tested this item ✅ successfully on 61c51d7

Tested Successfully!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47546.

avatar adarshdubey03
adarshdubey03 - comment - 23 Apr 2026

I have tested this item ✅ successfully on 61c51d7

Tested Successfully!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47546.

avatar chmst chmst - test_item - 24 Apr 2026 - Tested successfully
avatar chmst
chmst - comment - 24 Apr 2026

I have tested this item ✅ successfully on 61c51d7


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47546.

avatar chmst
chmst - comment - 24 Apr 2026

I have tested this item ✅ successfully on 61c51d7


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47546.

avatar chmst chmst - change - 24 Apr 2026
Status Pending Ready to Commit
avatar chmst
chmst - comment - 24 Apr 2026

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47546.

avatar chmst
chmst - comment - 24 Apr 2026

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47546.

Add a Comment

Login with GitHub to post a comment