makeup-floating-label
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -164,2 +164,4 @@ "use strict"; | ||
this.labelEl.classList.add(this.options.labelElementInlineModifier); | ||
} else if (!isSelect(this.formControlEl)) { | ||
this.labelEl.classList.remove(this.options.labelElementInlineModifier); | ||
} | ||
@@ -169,2 +171,3 @@ | ||
this.labelEl.classList.add(this.options.labelElementFocusModifier); | ||
this.labelEl.classList.remove(this.options.labelElementInlineModifier); | ||
} | ||
@@ -198,2 +201,3 @@ | ||
this.labelEl.classList.add(this.options.labelElementFocusModifier); | ||
this.labelEl.classList.remove(this.options.labelElementInlineModifier); | ||
} | ||
@@ -200,0 +204,0 @@ } |
@@ -121,5 +121,8 @@ const defaultOptions = { | ||
this.labelEl.classList.add(this.options.labelElementInlineModifier); | ||
} else if (!isSelect(this.formControlEl)) { | ||
this.labelEl.classList.remove(this.options.labelElementInlineModifier); | ||
} | ||
if (isFocused(this.formControlEl)) { | ||
this.labelEl.classList.add(this.options.labelElementFocusModifier); | ||
this.labelEl.classList.remove(this.options.labelElementInlineModifier); | ||
} | ||
@@ -145,2 +148,3 @@ onMutation.call(this); | ||
this.labelEl.classList.add(this.options.labelElementFocusModifier); | ||
this.labelEl.classList.remove(this.options.labelElementInlineModifier); | ||
} | ||
@@ -147,0 +151,0 @@ } |
{ | ||
"name": "makeup-floating-label", | ||
"description": "Module for creating an accessible, progressively enhanced floating label", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"main": "./dist/cjs/index.js", | ||
@@ -6,0 +6,0 @@ "module": "./dist/mjs/index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
17745
326