-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: flux.field.file can not be cleared / removed in the backend (configuration) #2194
Comments
I have found the reason for this behaviour and (probably) the right line of code. The visible-icon set on trigger set one (read-only) input field to hidden and the other (the one with the x button) to active. This should be done by adding and removing the css class "hidden" in -> <input type="text" id="formengine-input-67360dbd585db275569720" class="form-control t3js-clearable t3js-form-field-inputlink-input hasDefaultValue hidden" data-formengine-validation-rules="(...)" data-formengine-input-params="(...)
not by setting the html attribute to hidden. The class stays after you press the visible button and set the display of the input field to none !important. Here we go:
Please, can you fix this for the TYPO3 12 version? |
I'm not sure I understand the problem here. It looks like a couple of things are being mixed together:
From my perspective this looks like it's an unsupported usage with a field value that's only rendered as fallback. Flux simply does not hook into this field to modify CSS, JS or HTML that it produces. All Flux does is hand over a TCA field configuration - the TYPO3 core is then responsible for rendering and handling it. You would be seeing the same problem if you used a totally vanilla FlexForm with this field type, without Flux installed. You should also be aware that every field dealing with file relations is notoriously broken in v12 except for IRRE FAL ( Whatever the cause is: I would strongly recommend simply not relying on any field type other than |
I have checked that the bug exists in the
dev-development
branchYes
I have checked that there are no already open issues or recently closed issues about this bug
Yes
Describe the bug
There is no "x" Symbol or any other option to clear the previous chosen image or icon in backend using the <flux:field.file .../>. Even the backspace key doesn't work. After clicking on an eye-icon, the whole field disappears.
To Reproduce
Under <f:section name="Configuration"> use flux:form, then flux:form.section and flux:form.object to use <flux:field.file name="buttonIcon" label="Icon für den Button" allowed="svg" useFalRelation="1" showThumbnails="1" maxItems="1"></flux:field.file>
Expected behavior
On click on the input field a x-symbol should appear. On click on the x-symbol you should be able to clear the chosen file.
Screenshots
The text was updated successfully, but these errors were encountered: