(el, value, oldValue)
| 129 | |
| 130 | function vFocusFactory() { |
| 131 | const handle = (el, value, oldValue) => { |
| 132 | if (value === oldValue) return; |
| 133 | if (value == null || value) { |
| 134 | el.tabIndex = -1; |
| 135 | el.focus(); |
| 136 | } |
| 137 | }; |
| 138 | return { |
| 139 | mounted(el, binding) { |
| 140 | handle(el, binding.value, {}); |
no outgoing calls
no test coverage detected