sykj 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/lib/focus.ts +7 -1
  2. package/package.json +1 -1
package/lib/focus.ts CHANGED
@@ -27,7 +27,13 @@ document.addEventListener("focusout", (event) => {
27
27
 
28
28
  // 是否展示输入法
29
29
  const isEditableFormComponent = (el: EventTarget): Boolean => {
30
- if (el instanceof HTMLInputElement && el.readOnly) {
30
+ const notType = ["checkbox"];
31
+
32
+ if (
33
+ el instanceof HTMLInputElement &&
34
+ el.readOnly &&
35
+ !notType.includes(el.type)
36
+ ) {
31
37
  return false;
32
38
  } else {
33
39
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sykj",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "rem adaptation🚀",
5
5
  "main": "lib/common.ts",
6
6
  "files": [