Closed
Description
There is a specific line config.magnifierOpts.enabled
in /lib/web/magnifier/magnify.js
.
This will always evaluate to true, unless the magnier option is set like below:
<var name="magnifier">
<var name="enabled"></var> <!-- Turn on/off magnifier (true/false) -->
</var>
As it will be a json string of `"false"
Steps to reproduce
Add the following to /etc/view.xml
:
<var name="magnifier">
<var name="enabled">false</var> <!-- Turn on/off magnifier (true/false) -->
</var>
Expected result
- The zoom should be disabled
Actual result
- It isn't disabled
Even if you set the magnifier.enabled
to an empty string " "
, it will not execute that code but it will still pop the zoom up.