diff options
author | Sukanya Pandey <sukapan1@in.ibm.com> | 2021-01-04 09:35:30 +0300 |
---|---|---|
committer | Yoshie Muranaka <yoshiemuranaka@gmail.com> | 2021-01-07 01:02:16 +0300 |
commit | e881499e182bdb7030920c9dc81bfbf423ae620c (patch) | |
tree | 685ae51e72fa66738985957537cce58596193cd0 /src | |
parent | 5fe1c3fed73164d4fe82ebb142cefbca72c2e706 (diff) | |
download | webui-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')
-rw-r--r-- | src/components/Global/InputPasswordToggle.vue | 2 |
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'; } |