beyond-rails 1.0.12 → 1.0.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26aae44ec06ec8216eebe16e794065aa23c7e510d6253a0de48f6deff3294731
4
- data.tar.gz: e13f0bb6afb3827f57c07e2fdadc9d5e6f3381266c36142f44750c500a132b02
3
+ metadata.gz: 2e593038a926c3a7a06730b4789445dac83b9a62cc52f45432a4b468976576dc
4
+ data.tar.gz: e3ebd72423a9c8033c9adb86fcb6185011ea8c86ce326fdf5a8d2f30809700a5
5
5
  SHA512:
6
- metadata.gz: 6a6f7d37b7378f86d6043be868c80e8ade984fbfd9dc27866ef461976927338c34d3a351e34171773ad6535fe8253395eec72f558d6b5b69075020f88c5931aa
7
- data.tar.gz: 99342b5ea812513262e4e5e15ddbabddbbda9a359490ca6d09c96acdeb4186847b53daa4c29b348303a9b57684da28294db3a8476c6eb477047796739047e92b
6
+ metadata.gz: 1a1ae344be9c2f6ac8df46135d9c43e8fc835062040f1fe46f9ca5e321d20ede77814b54927654860d2e3b353d8e0bbf39d2c49f1695b1732102d6f195fe3246
7
+ data.tar.gz: bac6e07fa1aa425b1ec7d089d97498ab8d854805c667f0703407856e1e271d6cd1b6906083d40e9c3ab4c016ad306f3fb38e06cbd29393aa122740e6c864effc
@@ -1,6 +1,7 @@
1
1
  import getKey from '../utils/getKey'
2
2
  import noop from '../utils/noop'
3
3
  import raf from '../utils/raf'
4
+ import isDef from '../utils/isDef'
4
5
  import supportDom from '../decorators/supportDom'
5
6
 
6
7
  @supportDom
@@ -181,6 +182,10 @@ export default class TagInput {
181
182
  input.value = ''
182
183
  suggestInput.value = ''
183
184
 
185
+ if (isDef(res.text)) {
186
+ this.addTag(res, 'input')
187
+ return
188
+ }
184
189
  const row = Object.assign({}, res, { text: inputValue })
185
190
  this.addTag(row, 'input')
186
191
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beyond-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12
4
+ version: 1.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - kmsheng
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-03-04 00:00:00.000000000 Z
12
+ date: 2022-04-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sassc