beyond-rails 1.0.10 → 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: 6a8f6e5957af5a8ebf87ea71269fb61c3cbac77a15fee0ceddd2a23263503530
4
- data.tar.gz: efdc73be14d5caec5d12ed6eb064fb07b3bd7bdc99f63344cad21571a64b4014
3
+ metadata.gz: 2e593038a926c3a7a06730b4789445dac83b9a62cc52f45432a4b468976576dc
4
+ data.tar.gz: e3ebd72423a9c8033c9adb86fcb6185011ea8c86ce326fdf5a8d2f30809700a5
5
5
  SHA512:
6
- metadata.gz: daaad300c7583ad1669a4d3abce886932654951c9c54810004a2bcff075631aa3931678e878832ec58ac76f112bb0e7c6ab1f3ded76e9ed06b28f29aaef79390
7
- data.tar.gz: 0bb7a9719a4aa3929ae92faf545366ae6a8d5acd7422f8a43d8b26b3828d08bf23708dc927df2de224188fa19a0a4d07a550e25b27ddb3c47fef1a56eaeb82d4
6
+ metadata.gz: 1a1ae344be9c2f6ac8df46135d9c43e8fc835062040f1fe46f9ca5e321d20ede77814b54927654860d2e3b353d8e0bbf39d2c49f1695b1732102d6f195fe3246
7
+ data.tar.gz: bac6e07fa1aa425b1ec7d089d97498ab8d854805c667f0703407856e1e271d6cd1b6906083d40e9c3ab4c016ad306f3fb38e06cbd29393aa122740e6c864effc
@@ -41,6 +41,17 @@ export default class Tabbox {
41
41
  this.moveToCurrentNode()
42
42
  this.addCurrentClass()
43
43
  }
44
+ else {
45
+ this.eachDropdownOption(({ dropdownBtn, dropdownInstance, optionEl }) => {
46
+ if (optionEl.dataset.tabboxItem === name) {
47
+ this.setDropdown({
48
+ dropdownBtn,
49
+ optionEl,
50
+ dropdownInstance
51
+ })
52
+ }
53
+ })
54
+ }
44
55
  }
45
56
 
46
57
  eachDropdownOption(fn) {
@@ -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.10
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