Closed LordHansolo closed 4 years ago
It's also an issue in Magento 2.1.2. And, in my opinion, it is not important which block class you use, as this is a general issue with all parameters of xsi:type="block"
depending on another parameter.
In #5443, you find detailed info of the expected/actual for the problem (display:none;
is set on the wrong html element). I can confirm that these are the same for this one!
Maybe, this is a duplicate of #5443 (but the steps to reproduce are a bit different).
@LordHansolo, thank you for your report. We've created internal ticket(s) MAGETWO-82054 to track progress on the issue.
What will be the expected fix timeframe? It is quite confusing that all depend labels are still shown.
Hello, Any news on this issue?
In my case, the problem was that the selected rowElement was the child of the rowElement that was supposed to be hidden. I added the following piece of code to fix this to lib/web/mage/adminhtml/form.js line 567:
if (rowElement.className === 'admin__field-control control') {
rowElement = target.up(2);
}
I am currently looking for a better solution.
Hi @sergey-solo. Thank you for working on this issue. Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:
[ ] 1. Add/Edit Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.
[ ] 2. Verify that the issue is reproducible on 2.3-develop
branchDetails
- Add the comment @magento give me 2.3-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.3-develop
branch, please, add the label Reproduced on 2.3.x
.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
[ ] 3. If the issue is not relevant or is not reproducible any more, feel free to close it.
For the impatient here is a fix: https://magento.stackexchange.com/questions/176091/magento-2-depends-is-not-working-in-widget-xml. Make sure you consider the first comment as the require-config.js is placed in the wrong directory. I can confirm it works fine on 2.2.9.
I can confirm this issue is still present in 2.3.3.
Fix from @OvalMedia works but I really don't like copying a gigantic javascript and appending 3 lines. This is not very future (= maintainable) proof.
Found this issue present in Magento 2.3.1. Please share the patch for this issue. Fix from @OvalMedia works great.
Here's a solution which seems to work in our case, it's strongly based on the stackexchange proposal but drops the original PrototypeJS implementation and uses jQuery all the way now: https://github.com/magento/magento2/pull/30570
Hi @LordHansolo. Thank you for your report. The issue has been fixed in magento/magento2#30570 by @hostep in 2.4-develop branch Related commit(s):
The fix will be available with the upcoming 2.4.2 release.
@magento-engcom-team @sidolov @ihor-sviziev the corresponding pull request is merged, but the fix does not cover all possible cases. 2 additional cases are described in the comments to the pull request https://github.com/magento/magento2/pull/30570
Preconditions
Steps to reproduce
It is important to use block class="Magento\Catalog\Block\Adminhtml\Category\Widget\Chooser" or block class="Magento\Catalog\Block\Adminhtml\Product\Widget\Chooser".
Expected result
Our Parameter disappears, if conditions set on depends are not met.
Actual result
Parameter is visible anyway.