Skip to content

Commit

Permalink
bumps package version
Browse files Browse the repository at this point in the history
  • Loading branch information
yairEO committed Mar 17, 2020
1 parent 6494fa5 commit e6fa3ca
Show file tree
Hide file tree
Showing 6 changed files with 2,219 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -52,6 +52,7 @@ Temporary Items
/test2.html
/package-lock.json
/react
/test
/react-demo.html
.idea
/.vscode/bookmarks.json
Expand All @@ -61,3 +62,4 @@ Temporary Items
/logo.psd
/test/_temp.html
/test/test-1.html
/test
19 changes: 17 additions & 2 deletions README.md
Expand Up @@ -344,7 +344,22 @@ Similar to native `<Select>` element, but allows typing free text as value.

A Tagify React component is exported as `<Tags>` from [`react.tagify.js`](https://github.com/yairEO/tagify/blob/master/dist/react.tagify.js):

Check the [**live demo**](https://codesandbox.io/s/tagify-react-wrapper-6vd3i) for a live React integration example
```javascript
import Tags from "@yaireo/tagify/dist/react.tagify" // React-wrapper file

const App = () => {
return (
<Tags
settings={settings} // tagify settings object
value="a,b,c"
{...tagifyProps} // dynamic props such as "loading", "showDropdown:'abc'", "value"
onChange={e => console.log("CHANGED:", e)}
/>
)
})
```

Check the [**live demo**](https://codesandbox.io/s/tagify-react-wrapper-oempc) for a React integration example.


## Angular
Expand Down Expand Up @@ -523,7 +538,7 @@ tagify
Name | Info
------------------ | --------------------------------------------------------------------------
add | A tag has been added
remove | A tag has been removed
remove | A tag has been removed ([use `removeTag`](https://github.com/yairEO/tagify/issues/222) intead with *jQuery*)
invalid | A tag has been added but did not pass vaildation. See [event detail](https://developer.mozilla.org/en-US/docs/Web/Guide/Events/Creating_and_triggering_events)
input | [Input](https://developer.mozilla.org/en-US/docs/Web/Events/input) event, when a tag is being typed/edited. `e.detail` exposes `value`, `inputElm` & `isValid`
click | Clicking a tag. Exposes the tag element, its index & data
Expand Down
3 changes: 2 additions & 1 deletion dist/tagify.js
@@ -1,5 +1,5 @@
/**
* Tagify (v 3.6.1)- tags input component
* Tagify (v 3.6.2)- tags input component
* By Yair Even-Or
* Don't sell this code. (c)
* https://github.com/yairEO/tagify
Expand Down Expand Up @@ -353,6 +353,7 @@ Tagify.prototype = {
destroy: function destroy() {
this.DOM.scope.parentNode.removeChild(this.DOM.scope);
this.dropdown.hide.call(this, true);
clearTimeout(this.dropdownHide__bindEventsTimeout);
},

/**
Expand Down
2,196 changes: 2,194 additions & 2 deletions dist/tagify.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@yaireo/tagify",
"version": "3.6.2",
"version": "3.6.3",
"homepage": "https://github.com/yairEO/tagify",
"description": "lightweight, efficient Tags input component in Vanilla JS / React / Angular [super customizable, tiny size & top performance]",
"license": "MIT",
Expand Down
5 changes: 3 additions & 2 deletions src/tagify.js
Expand Up @@ -314,8 +314,9 @@ Tagify.prototype = {
* revert any changes made by this component
*/
destroy(){
this.DOM.scope.parentNode.removeChild(this.DOM.scope);
this.dropdown.hide.call(this, true);
this.DOM.scope.parentNode.removeChild(this.DOM.scope)
this.dropdown.hide.call(this, true)
clearTimeout(this.dropdownHide__bindEventsTimeout)
},

/**
Expand Down

0 comments on commit e6fa3ca

Please sign in to comment.