No Code Attached Yet
avatar ced1870
ced1870
27 Jan 2023

Steps to reproduce the issue

Create a xml field type "category" which is a flat list of items
<field name="categories_catid" type="category" ... />
edit it the setting and see the field rendering :

  • unexpected display with a blue border around the list
  • the active/selected item is not shown

Expected result

to have a clear list that shows the selected item

Actual result

the item is selected but the user can not see it

System information (as much as possible)

joomla 4

Additional comments

this is a problem with the CSS, more with the css class "form-select" added on the field
the selected item has a white background on a white list, then you can not see itscreen shot 2023-01-27 at 10 17 03

avatar ced1870 ced1870 - open - 27 Jan 2023
avatar ced1870 ced1870 - change - 27 Jan 2023
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 27 Jan 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 27 Jan 2023
avatar brianteeman
brianteeman - comment - 7 Feb 2023

You need to use
layout="joomla.form.field.list-fancy-select"

For an example see any core usage of the field of the same type

<field
name="catid"
type="category"
label="JCATEGORY"
extension="com_content"
multiple="true"
layout="joomla.form.field.list-fancy-select"
filter="intarray"
/>

avatar ced1870
ced1870 - comment - 9 Feb 2023

thank you !
this shall be by default, not as an alternative layout :)

avatar Hackwar Hackwar - change - 22 Feb 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 22 Feb 2023
avatar brianteeman brianteeman - change - 1 Sep 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-09-01 15:36:48
Closed_By brianteeman
avatar brianteeman brianteeman - close - 1 Sep 2023
avatar brianteeman
brianteeman - comment - 1 Sep 2023

This is not a bug. It is working as designed. To achieve the desired result then the correct layout should be used.

avatar brianteeman brianteeman - change - 1 Sep 2023
Labels Removed: bug
avatar brianteeman brianteeman - unlabeled - 1 Sep 2023

Add a Comment

Login with GitHub to post a comment