summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorSukanya Pandey <sukapan1@in.ibm.com>2021-01-04 09:35:30 +0300
committerYoshie Muranaka <yoshiemuranaka@gmail.com>2021-01-07 01:02:16 +0300
commite881499e182bdb7030920c9dc81bfbf423ae620c (patch)
tree685ae51e72fa66738985957537cce58596193cd0 /src/components
parent5fe1c3fed73164d4fe82ebb142cefbca72c2e706 (diff)
downloadwebui-vue-e881499e182bdb7030920c9dc81bfbf423ae620c.tar.xz
Add test case for input password toggle component
Signed-off-by: Sukanya Pandey <sukapan1@in.ibm.com> Change-Id: I00e3fc12a58d644d0aad3c0caf4a94d2ed435109
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Global/InputPasswordToggle.vue2
1 files changed, 1 insertions, 1 deletions
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';
}