Skip to content

Conversation

@hiteshm0
Copy link
Contributor

Pull Request for Issue #46472

Summary of Changes

When creating a menu item via "save to menu" from articles or categories, the menu type is preselected on page load. But, the parent item dropdown does not have any items. This is because the parent item dropdown is populated only when a change event is fired on a menu type field. And no change event occurs when the page is loaded with a preselected menu item.

Fix: Added initialization logic to check if a menu type is already selected on page load. If yes, then the onChange function is trigerred manually.

Testing Instructions

  1. Go to content → articles/categories
  2. Open/create any article/category
  3. Click save to menu button
  4. Check the parent item dropdown

Actual result BEFORE applying this Pull Request

Parent Item dropdown is empty

Expected result AFTER applying this Pull Request

Parent item dropdown has the correct items

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@ceford
Copy link
Contributor

ceford commented Jan 5, 2026

I have tested this item ✅ successfully on 9e64196


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

@coolcat-creations
Copy link
Contributor

I have tested this item ✅ successfully on 8110997

Works as described and is very useful, thank you!


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

@richard67
Copy link
Member

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jan 9, 2026
@richard67 richard67 added this to the Joomla! 5.4.3 milestone Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug NPM Resource Changed This Pull Request can't be tested by Patchtester PR-5.4-dev RTC This Pull Request is Ready To Commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants