v-focus-outside

Click into a text input to focus on it. Click into another to focus on it. Click on the others at your own peril.

(Hint: Click in the first text input and hold down the tab key.)

v-focus-outside example

		

		<script>
			export default {
				methods: {
					onFocusOutside(e, el) {
						console.log("onFocusOutside");
						console.log("Event:", e);
						console.log("Element focus was given to:", e.target);
						console.log("Element that burns with jealosy:", el);
					}
				}
			}
		</script>