From 884ef9f7ee345ab1e940dbf88f4432b7e10f36e3 Mon Sep 17 00:00:00 2001 From: Julien Mougenot Date: Thu, 4 Jun 2020 08:06:08 +0000 Subject: [REF] web: force dropdown menu icon through getter Before this ref, the dropdown menu got his icon directly from his props. This means that any inheriting class had either to define its icon with the 'default_props' key or to have its parent giving it in the props. Now, the icon is retrieved from the props via a getter (same as title and items) and can be overridden to force a fixed icon on the class. --- addons/web/static/src/xml/base.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addons/web/static/src/xml') diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 999e12ebccd..6d71234a6c1 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -160,7 +160,7 @@ t-on-click="state.open = !state.open" t-on-keydown="_onButtonKeydown" > - + @@ -575,7 +575,7 @@ t-on-keydown="_onFacetKeydown(facet, facet_index)" > - +
-- cgit v1.2.3