[Beta] Backend filter dropdowns still using chozen instead of core. #1026
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#1026
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Steps to reproduce the issue
Install component, view backend list view. Notice the dropdowns are not core.
Expected result
Dropdowns using core.
Actual result
Dropdowns generated using chozen JS.
Removing chosenjs markup and removing display:none on the original select already makes it look exactly like core.
System information (as much as possible)
The same goes for a (custom) list type fields in single view.
Backend filter dropdowns still using chozen instead of core.to [Beta] Backend filter dropdowns still using chozen instead of core.Thanks Tom, I also noticed this... did not get to fix that as yet. You can help me if you can give me the code to change in the component with file names and lines? as much details as you can... (not from the GUI) but from the code, inside the Joomla package that JCB is building. So I can look at what the compiler must do different.
The last update should fix this: https://git.vdm.dev/joomla-beta/pkg-component-builder/archive/v3.1.32.zip
Please confirm, and then closing the issue if fixed, thanks!
This was not fully working as expected. I noticed the dropdown for accesslevel type field was not using the new field option: layout="joomla.form.field.list-fancy-select". I also did not notice any difference when removing the class="multipleAccessLevels". It still showed exactly like the core field in joomla.
So basically in J4/5 you could just replace the class="multipleAccessLevels" with layout="joomla.form.field.list-fancy-select"
I'm yet to test this on a custom field type. Will do this next.
Ok for a custom field type it seems it needs two changes:
The default options needs to be removed since it is adding an option to the list that should not be there.
And it needs the above layout="joomla.form.field.list-fancy-select" added to a custom field.
I had a custom field and i changed in administrator/components/com_component/src/Field/CustomFieldfiltertypeField.php
on line 59 i uncommented this code to remove the placeholder as an select option:
BEFORE CHANGING LINE 59
AFTER CHANGING LINE 59
You would want to add this to have a good placeholder:
The last update should fix this: https://git.vdm.dev/joomla-beta/pkg-component-builder/archive/v3.1.33.zip
Please confirm, and then closing the issue if fixed, thanks!
This seems fixed indeed. I do see you're using the single select way of writing the text description for the dropdown. Will make it fit better but it's not exactly how core does it. But then i guess core is not being consistent here haha.