From e881499e182bdb7030920c9dc81bfbf423ae620c Mon Sep 17 00:00:00 2001 From: Sukanya Pandey Date: Mon, 4 Jan 2021 12:05:30 +0530 Subject: Add test case for input password toggle component Signed-off-by: Sukanya Pandey Change-Id: I00e3fc12a58d644d0aad3c0caf4a94d2ed435109 --- src/components/Global/InputPasswordToggle.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/Global') diff --git a/src/components/Global/InputPasswordToggle.vue b/src/components/Global/InputPasswordToggle.vue index 2119f8c6..969a15d3 100644 --- a/src/components/Global/InputPasswordToggle.vue +++ b/src/components/Global/InputPasswordToggle.vue @@ -35,7 +35,7 @@ export default { this.isVisible = !this.isVisible; - if (inputEl.nodeName === 'INPUT') { + if (inputEl && inputEl.nodeName === 'INPUT') { inputEl.type = this.isVisible ? 'text' : 'password'; } -- cgit v1.2.3