turbo_ready 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,16 +9,11 @@ const textarea = /TEXTAREA/i
9
9
 
10
10
  function updating (el, toEl, childrenOnly, skip) {
11
11
  if (el.nodeType !== Node.ELEMENT_NODE) return
12
+ if (el !== document.activeElement) return
12
13
 
13
- let protect = false
14
- protect = el.tagName.match(textarea)
15
-
16
- if (protect) return skip()
17
-
18
- protect =
19
- el === document.activeElement &&
20
- el.tagName.match(input) &&
21
- el.getAttribute('type').match(inputTypes)
14
+ const protect =
15
+ el.tagName.match(textarea) ||
16
+ (el.tagName.match(input) && el.getAttribute('type').match(inputTypes))
22
17
 
23
18
  if (protect) return skip()
24
19
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TurboReady
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "turbo_ready",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Take full control of the DOM with Turbo Streams",
5
5
  "main": "app/javascript/index.js",
6
6
  "repository": "https://github.com/hopsoft/turbo_ready",
data/tags CHANGED
@@ -217196,7 +217196,7 @@ VDash node_modules/parse-srcset/tests/he.js /^ var decodeMap = {'Aacute':'\\xC1'
217196
217196
  VDash node_modules/simple-html-tokenizer/dist/es6/index.js /^ Aacute: "Á", aacute: "á", Abreve: "Ă", abreve: "ă", ac: "∾", acd: "∿", acE: "∾̳",/;" p variable:namedCharRefs
217197
217197
  VDash node_modules/simple-html-tokenizer/dist/simple-html-tokenizer.js /^ Aacute: "Á", aacute: "á", Abreve: "Ă", abreve: "ă", ac: "∾", acd: "∿", acE: "∾/;" p variable:anonymousFunction3825d8d70300.namedCharRefs
217198
217198
  VDash node_modules/simple-html-tokenizer/dist/types/generated/html5-named-char-refs.d.ts /^ VDash: string;$/;" C
217199
- VERSION lib/turbo_ready/version.rb /^ VERSION = "0.1.1"$/;" C module:TurboReady
217199
+ VERSION lib/turbo_ready/version.rb /^ VERSION = "0.1.2"$/;" C module:TurboReady
217200
217200
  VERSION node_modules/@angular/compiler/esm2015/src/output/source_map.js /^const VERSION = 3;$/;" C
217201
217201
  VERSION node_modules/@angular/compiler/esm2015/src/version.js /^export const VERSION = new Version('8.2.14');$/;" C
217202
217202
  VERSION node_modules/@angular/compiler/esm5/src/output/source_map.js /^var VERSION = 3;$/;" v
@@ -481065,7 +481065,7 @@ version package-lock.json /^ "version": "9.4.0",$/;" s object:packages.node
481065
481065
  version package-lock.json /^ "version": "9.4.3",$/;" s object:dependencies.lint-staged
481066
481066
  version package-lock.json /^ "version": "9.4.3",$/;" s object:packages.node_modules/lint-staged
481067
481067
  version package-lock.json /^ "version": "0.0.7",$/;" s
481068
- version package.json /^ "version": "0.1.0",$/;" s
481068
+ version package.json /^ "version": "0.1.1",$/;" s
481069
481069
  versionIncluded node_modules/prettier-standard/src/vendor/node_modules/resolve/lib/core.js /^function versionIncluded(specifierValue) {$/;" f
481070
481070
  versionIncluded node_modules/resolve/lib/core.js /^function versionIncluded(specifierValue) {$/;" f
481071
481071
  versionInfo node_modules/graphql/version.d.ts /^export const versionInfo: {$/;" C