Fixed bad html output in menu particle

This commit is contained in:
Matias Griese
2015-10-26 22:46:04 +02:00
parent 453c28e5c6
commit 7960407773
2 changed files with 3 additions and 4 deletions
+1
View File
@@ -30,6 +30,7 @@
- Fixed issue where Settings in Outlines overrides could potentially never remove the stored `yaml`, making it impossible to reset an entire section to Default (#929)
- Fixed issue where Tag fields wouldn't trigger the indicator change
- Fixed Collections not loading the default values defined in the `yaml`
- Fixed bad html output in menu particle
2. [Joomla](#joomla)
3. [](#bugfix)
- Disable caching from Particle Module by default (#925)
@@ -6,10 +6,8 @@
{% macro getCustomWidth(item, menu, mode, dropdown_type) -%}
{%- if (item.width|default('auto') != 'auto') and not (dropdown_type == 'fullwidth' and item.level > 1) -%}
{%- if mode == 'item' -%}
style="position: relative;"
{%- elseif mode == 'submenu' -%}
style="width:{{ item.width|e }};" data-g-item-width="{{ item.width|e }}"
{%- if mode == 'item' %} style="position: relative;"
{%- elseif mode == 'submenu' %} style="width:{{ item.width|e }};" data-g-item-width="{{ item.width|e }}"
{%- endif %}
{%- endif %}
{%- endmacro %}