Skip to content
Snippets Groups Projects
Verified Commit 08bdc580 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: remove display property #219

parent 19fed8d8
No related branches found
No related tags found
No related merge requests found
...@@ -327,7 +327,6 @@ class CustomElement extends HTMLElement { ...@@ -327,7 +327,6 @@ class CustomElement extends HTMLElement {
* @property {Object} templates Specifies the templates used by the control. * @property {Object} templates Specifies the templates used by the control.
* @property {string} templates.main=undefined Specifies the main template used by the control. * @property {string} templates.main=undefined Specifies the main template used by the control.
* @property {Object} templateMapping Specifies the mapping of templates. * @property {Object} templateMapping Specifies the mapping of templates.
* @property {string} display=block Specifies the display mode of the control.
* @since 1.8.0 * @since 1.8.0
*/ */
get defaults() { get defaults() {
...@@ -339,20 +338,19 @@ class CustomElement extends HTMLElement { ...@@ -339,20 +338,19 @@ class CustomElement extends HTMLElement {
main: undefined, main: undefined,
}, },
templateMapping: {}, templateMapping: {},
display: "block"
}; };
} }
/** /**
* This method updates the labels of the element. * This method updates the labels of the element.
* The labels are defined in the options object. * The labels are defined in the option object.
* The key of the label is used to retrieve the translation from the document. * The key of the label is used to retrieve the translation from the document.
* If the translation is different from the label, the label is updated. * If the translation is different from the label, the label is updated.
* *
* Before you can use this method, you must have loaded the translations. * Before you can use this method, you must have loaded the translations.
* *
* @returns {Monster.DOM.CustomElement} * @returns {Monster.DOM.CustomElement}
* @throws {Error} Cannot find element with translations. Add a translations object to the document. * @throws {Error} Cannot find an element with translations. Add a translation object to the document.
*/ */
updateI18n() { updateI18n() {
let translations; let translations;
...@@ -597,8 +595,6 @@ class CustomElement extends HTMLElement { ...@@ -597,8 +595,6 @@ class CustomElement extends HTMLElement {
let elements; let elements;
let nodeList; let nodeList;
this.style.setProperty("display", this.getOption("display"));
// Extract options from attributes and set them // Extract options from attributes and set them
const AttributeOptions = getOptionsFromAttributes.call(this); const AttributeOptions = getOptionsFromAttributes.call(this);
if ( if (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment