beyond-rails 0.0.257 → 0.0.258
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/src/js/components/TagInput.js +3 -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: 83b9e4c8bf66817ec8fa0527c656beaf770bb5b24658c62b64e8bf02bca3efec
|
4
|
+
data.tar.gz: 223409095aaa801811c032862e9faef7819ea886cd2fea927b78f25e1ab9cc29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fc2f2890ac0bf86fe5e1040da650fc627d10f5984b42ae43d85ffd0edd4583c312935b82b617d617276aff89580600b1a818b160ead65c39fb906977871c6e4
|
7
|
+
data.tar.gz: f4ae4425e442cd85834abcb05bc754c2b1f6b256552bdc865f3ccd9a630e5ced6d2093b3875269fe170bc3588be6c2f69ba88807ea121cd3cd3386dcc7b6887c
|
@@ -190,8 +190,11 @@ export default class TagInput {
|
|
190
190
|
let lastValue = ''
|
191
191
|
|
192
192
|
this.addEvent(input, 'keydown', async event => {
|
193
|
+
|
193
194
|
const key = getKey(event)
|
194
195
|
if ((key === 'enter') && (! this.isComposing)) {
|
196
|
+
event.preventDefault()
|
197
|
+
event.stopPropagation()
|
195
198
|
await this.addTagIfNeeded()
|
196
199
|
}
|
197
200
|
else if ((key === 'backspace') && (lastValue === '')) {
|
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: 0.0.
|
4
|
+
version: 0.0.258
|
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: 2020-11-
|
12
|
+
date: 2020-11-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sassc
|