shineout 1.10.6 → 1.10.7
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.
- package/css/Select/Select.js +6 -1
- package/css/index.d.ts +1 -1
- package/css/index.js +1 -1
- package/dist/shineout.js +12 -7
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/es/Select/Select.js +6 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/lib/Select/Select.js +6 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/es/Select/Select.js
CHANGED
|
@@ -113,7 +113,12 @@ function (_PureComponent) {
|
|
|
113
113
|
// this.closeByResult = true
|
|
114
114
|
// this.optionsHold = false
|
|
115
115
|
// }
|
|
116
|
-
if (el.getAttribute('data-id') === id) return true;
|
|
116
|
+
if (el.getAttribute('data-id') === id) return true; // in label
|
|
117
|
+
|
|
118
|
+
if (el.tagName === 'LABEL' && el.htmlFor && el.contains(this.element) && el.contains(document.getElementById(el.htmlFor))) {
|
|
119
|
+
return true;
|
|
120
|
+
}
|
|
121
|
+
|
|
117
122
|
if (!el.parentElement) return false;
|
|
118
123
|
return this.isDescendent(el.parentElement, id);
|
|
119
124
|
};
|
package/es/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Created by scripts/src-index.js.
|
|
2
2
|
import * as utils from './utils'
|
|
3
3
|
|
|
4
|
-
export default { utils, version: '1.10.
|
|
4
|
+
export default { utils, version: '1.10.7' }
|
|
5
5
|
export { utils }
|
|
6
6
|
export { setLocale } from './locale'
|
|
7
7
|
export { color, style } from './utils/expose'
|
package/es/index.js
CHANGED
package/lib/Select/Select.js
CHANGED
|
@@ -140,7 +140,12 @@ function (_PureComponent) {
|
|
|
140
140
|
// this.closeByResult = true
|
|
141
141
|
// this.optionsHold = false
|
|
142
142
|
// }
|
|
143
|
-
if (el.getAttribute('data-id') === id) return true;
|
|
143
|
+
if (el.getAttribute('data-id') === id) return true; // in label
|
|
144
|
+
|
|
145
|
+
if (el.tagName === 'LABEL' && el.htmlFor && el.contains(this.element) && el.contains(document.getElementById(el.htmlFor))) {
|
|
146
|
+
return true;
|
|
147
|
+
}
|
|
148
|
+
|
|
144
149
|
if (!el.parentElement) return false;
|
|
145
150
|
return this.isDescendent(el.parentElement, id);
|
|
146
151
|
};
|
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Created by scripts/src-index.js.
|
|
2
2
|
import * as utils from './utils'
|
|
3
3
|
|
|
4
|
-
export default { utils, version: '1.10.
|
|
4
|
+
export default { utils, version: '1.10.7' }
|
|
5
5
|
export { utils }
|
|
6
6
|
export { setLocale } from './locale'
|
|
7
7
|
export { color, style } from './utils/expose'
|
package/lib/index.js
CHANGED