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 +4 -4
- data/src/js/components/TagInput.js +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e593038a926c3a7a06730b4789445dac83b9a62cc52f45432a4b468976576dc
|
4
|
+
data.tar.gz: e3ebd72423a9c8033c9adb86fcb6185011ea8c86ce326fdf5a8d2f30809700a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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-
|
12
|
+
date: 2022-04-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sassc
|