Install joomla-cms/staging@1c52ed38516f2406fe63dbb762242ae3b82cfcb2
Create media field, only completing the required fields such as:
Go to front end and edit article - click select on the media field
Nice model with a good look and feel
Note the invalid blank dropdown next to the up button.
https://gist.github.com/PhilETaylor/b1ff259a06518f903339950ca81e35d7
Labels |
Added:
?
|
Title |
|
Title |
|
Title |
|
double checked on staging and still cant replicate
Title |
|
||||||
Status | New | ⇒ | Closed | ||||
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-03-27 15:38:52 | ||||
Closed_By | ⇒ | PhilETaylor |
Are you trying the frontend or the admin console?
joomla-cms/staging@d7caa77
Status | Closed | ⇒ | New |
Closed_Date | 2017-03-27 15:38:52 | ⇒ | |
Closed_By | PhilETaylor | ⇒ |
As the opening statement states:
Steps to reproduce the issue
Go to front end and edit article - click select on the media field
Its fine in admin, and broken in the frontend.
Category | ⇒ | com_fields |
Category | com_fields | ⇒ | com_fields Templates (site) |
Status | New | ⇒ | Discussion |
Title |
|
Title |
|
Title |
|
Title |
|
Can't reproduce that as well. Dropdown folder appears as expected in frontend article edit. Even without first saving the plugin parameters.
Tested again on Chrome and Edge on Windows XAMPP, can't reproduce that behavior even after opening and closing the modal multiple times.
I noticed a 404 error in the console about the ajax-loader.gif, but should not be related (imho).
So it may be related to Mac somehow?
width: 2px;
. WTF!!!
upstream bug confirmed. harvesthq/chosen#2029
Putting this:
.chosen-container .chosen-choices .search-field:only-child,
.chosen-container .chosen-choices .search-field:only-child input {
width: 100% !important;
}
into the templates css fixes the problem for me like harvesthq/chosen#2029 (comment) states
@PhilETaylor the sooner Joomla goes away from chosen the better: harvesthq/chosen#1740 (comment)
hmm can somone on a Mac try to confirm this? I have tryed this now multible times. But i can not reproduce the problem on Windows using the last version of chrome.
If I load http://127.0.0.1:8000/index.php/index.php?option=com_media&view=images&tmpl=component&asset=61&author=16&fieldid=jform_com_fields_somemedia&ismoo=0&folder= directly in the browser it works fine - the width is fine
Its only when that url is loaded as an iframe source in a modal on the frontend that I can replicate the upstream issue
The same modal is used when you click the image button in TinyMCE when editing a content item on the front of the site - this ALWAYS displays the folder list correct.
This further leads me to believe that this is a com_fields initialisation of the modal that is at fault
If you want to have a look at the respective com_fields specific code for that formfield: https://github.com/joomla/joomla-cms/blob/staging/plugins/fields/media/media.php
It's the exact same code in front- and backend. I honestly can't think of a place within the PHP code of fields which could generate your issues. It should be the same behavior everytime anyway.
I never said it's not an issue. It's just that com_fields doesn't do anything different here than com_content does. It's the same formfield that gets rendered and it's also the same code in JForm which does it. There is no difference here.
Thus I wonder where the issue cos from, as I don't think it's a com_fields specific one.
Labels |
Added:
J3 Issue
|
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-02-10 21:35:11 |
Closed_By | ⇒ | PhilETaylor |
Are you on the latest staging? I cant replicate this