beyond-rails 1.0.13 → 1.0.14

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: 2e593038a926c3a7a06730b4789445dac83b9a62cc52f45432a4b468976576dc
4
- data.tar.gz: e3ebd72423a9c8033c9adb86fcb6185011ea8c86ce326fdf5a8d2f30809700a5
3
+ metadata.gz: c6abfc6e8b2e308528106dd0b5bbfb7305ae23035a323fccac661bc1b7c2cf46
4
+ data.tar.gz: 49e5bf41e1b4f1a705c288b2fc9a13aa3708c900282a152d3eb77a7471c6aa3d
5
5
  SHA512:
6
- metadata.gz: 1a1ae344be9c2f6ac8df46135d9c43e8fc835062040f1fe46f9ca5e321d20ede77814b54927654860d2e3b353d8e0bbf39d2c49f1695b1732102d6f195fe3246
7
- data.tar.gz: bac6e07fa1aa425b1ec7d089d97498ab8d854805c667f0703407856e1e271d6cd1b6906083d40e9c3ab4c016ad306f3fb38e06cbd29393aa122740e6c864effc
6
+ metadata.gz: 313c84010ef897b581aa15f48ebbb85964aa984ce4fdf1056ca06d4c3f879dfcbf87fc62c420551bc55aa157aced8b129346defeb6a139a109996e5a0e04757a
7
+ data.tar.gz: 3c57dff44afb302dd230ef5f5ae24a7ff15849059296438dd129ac9c718ebae05fb1aca46140e595de4e8ed539c20a18df77b9fcbcfcd58102d44abe8705030c
@@ -13,6 +13,7 @@ export default class TagInput {
13
13
  this.validate = options.validate || (() => ({ isTag: true }))
14
14
  this.suggest = options.suggest || noop
15
15
  this.change = options.change || noop
16
+ this.inputId = options.inputId
16
17
  this.isComposing = false
17
18
  this.raf = raf
18
19
  this.id = 0
@@ -26,7 +27,7 @@ export default class TagInput {
26
27
  }
27
28
 
28
29
  setup() {
29
- const { defaultInputWidth } = this
30
+ const { defaultInputWidth, inputId } = this
30
31
  const inputDiv = document.createElement('div')
31
32
  inputDiv.className = 'tag-input-box'
32
33
 
@@ -36,6 +37,9 @@ export default class TagInput {
36
37
  suggestInput.className = 'tag-suggest-input'
37
38
 
38
39
  const input = document.createElement('input')
40
+ if (inputId) {
41
+ input.id = inputId
42
+ }
39
43
  input.type = 'text'
40
44
  input.style.width = defaultInputWidth + 'px'
41
45
  input.className = 'tag-main-input'
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.13
4
+ version: 1.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - kmsheng