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 {
* @property {Object} templates Specifies the templates 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 {string} display=block Specifies the display mode of the control.
* @since 1.8.0
*/
get defaults() {
......@@ -339,20 +338,19 @@ class CustomElement extends HTMLElement {
main: undefined,
},
templateMapping: {},
display: "block"
};
}
/**
* 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.
* If the translation is different from the label, the label is updated.
*
* Before you can use this method, you must have loaded the translations.
*
* @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() {
let translations;
......@@ -597,8 +595,6 @@ class CustomElement extends HTMLElement {
let elements;
let nodeList;
this.style.setProperty("display", this.getOption("display"));
// Extract options from attributes and set them
const AttributeOptions = getOptionsFromAttributes.call(this);
if (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment