[FIX] web: remove duplicate classname in RecordSelector

This commit removes the unnecessary duplicate of the 'o-input' class being present
in the template of the (Multi)RecordSelector components. As the RecordAutocomplete
component uses the Autocomplete component, which already set this classname on its
<input> node, the class was present twice in the DOM.

This could affect the style when trying to write a rule on .o_input since both elements
would get the style.

Now, only the input keep the class, which makes things easier and more predictable.

closes odoo/odoo#161934

Signed-off-by: Mathieu Duckerts-Antoine (dam) <dam@odoo.com>
This commit is contained in:
luvi
2024-04-16 10:32:29 +00:00
parent cfc072c475
commit b4a798d843
2 changed files with 2 additions and 2 deletions
@@ -9,7 +9,7 @@
value="''"
domain="props.domain"
context="props.context"
className="'o_input flex-grow-1'"
className="'flex-grow-1'"
fieldString="props.fieldString"
placeholder="placeholder"
multiSelect="true"
@@ -7,7 +7,7 @@
value="displayName"
domain="props.domain"
context="props.context"
className="'o_input h-100 o_record_selector'"
className="'h-100 o_record_selector'"
fieldString="props.fieldString"
placeholder="props.placeholder"
multiSelect="false"