bulma-extensions
Advanced tools
Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "bulma-tagsinput", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Bulma.io extension to add interaction on input tags", | ||
@@ -5,0 +5,0 @@ "main": "tagsinput.sass", |
class Tagify { | ||
constructor(element, options = {}) { | ||
let defaultOptions = { | ||
debug: false, | ||
disabled: false, | ||
@@ -38,3 +37,3 @@ delimiter: ',', | ||
this.element.parentNode[sib ? 'insertBefore':'appendChild'](this.container, sib); | ||
this.element.style.cssText = 'position:absolute;left:0;top:-99px;width:1px;height:1px;opacity:0.01;'; | ||
this.element.style.cssText = 'position:absolute;left:0;top:0;width:1px;height:1px;opacity:0.01;'; | ||
this.element.tabIndex = -1; | ||
@@ -85,2 +84,3 @@ | ||
this.container.removeChild(selectedTag); | ||
delete this.tags[this.tags.indexOf(selectedTag.getAttribute('data-tag'))]; | ||
this.setInputWidth(); | ||
@@ -92,2 +92,3 @@ this.save(); | ||
this.container.removeChild(selectedTag); | ||
delete this.tags[this.tags.indexOf(selectedTag.getAttribute('data-tag'))]; | ||
this.setInputWidth(); | ||
@@ -213,2 +214,3 @@ this.save(); | ||
this.container.removeChild(selectedTag); | ||
delete this.tags[this.tags.indexOf(selectedTag.getAttribute('data-tag'))]; | ||
this.setInputWidth(); | ||
@@ -238,3 +240,3 @@ this.save(); | ||
(Array.prototype.slice.call(this.container.querySelectorAll('.tag'))).forEach((tag) => { | ||
delete this.tags[tag.innerHTML]; | ||
delete this.tags[this.tags.indexOf(tag.innerHTML)]; | ||
this.container.removeChild(tag); | ||
@@ -241,0 +243,0 @@ }); |
{ | ||
"name": "bulma-extensions", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Set of extensions for Bulma.io CSS Framework", | ||
@@ -5,0 +5,0 @@ "main": "extensions.sass", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
599884
134
1350