UNPKG
vimo
Version:
latest (1.1.17)
1.1.17
1.1.15
1.1.14
1.1.13
1.1.11
1.1.10
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
0.9.7
0.9.6
0.9.3
0.9.2
0.9.0
0.8.1
0.8.0
0.7.10
0.7.9
0.7.8
0.7.7
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.3
0.6.2
0.6.1
0.6.0
0.5.50
0.5.47
0.5.45
0.5.44
0.5.43
0.5.42
0.5.41
0.5.40
0.5.39
0.5.37
0.5.36
0.5.35
0.5.34
0.5.33
0.5.32
0.5.31
0.5.30
0.5.29
0.5.28
0.5.27
0.5.26
0.5.25
0.5.24
0.5.23
0.5.22
0.5.21
0.5.20
0.5.19
0.5.18
0.5.17
0.5.16
0.5.15
0.5.14
0.5.13
0.5.12
0.5.11
0.5.10
0.5.9
0.5.8
0.5.7
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.8
0.4.7
0.4.5
0.4.4
0.4.2
0.4.1
0.4.0
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.9
0.2.8
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.9
0.1.8
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
A Vue2.x UI Project For Mobile & HyBrid
github.com/vm-component/vimo
vm-component/vimo
vimo
/
src
/
util
/
focus-out-active-element.js
8 lines
•
258 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
/** * blur out TEXTAREA或者INPUT的状态 *
@return
{
boolean
} * */
export
default
function
focusOutActiveElement
(
) {
const
activeElement =
document
.
activeElement
// <HTMLElement>
activeElement && activeElement.
blur
&& activeElement.
blur
() }