diff --git a/source/components/form/login.mjs b/source/components/form/login.mjs index 202ce593ce76305232ed3108a19520dec032da24..8e0105f0bde3d93ad672f9c85cd8c203134c5b28 100644 --- a/source/components/form/login.mjs +++ b/source/components/form/login.mjs @@ -487,7 +487,7 @@ function getTranslations() { case "hi": return { - username: "उपयो\A4\97कर नम य ई-मल", + username: "उपयगकर नम य ई-मल", password: "पसवर", login: "लग इन कर", forgotPasswordLink: "पसवर भल गए?", diff --git a/source/components/form/password.mjs b/source/components/form/password.mjs index 2735828dab407abbb1d919110cd4657fb2901144..803f8800fdadc242481c27c39d699cc6eed2413e 100644 --- a/source/components/form/password.mjs +++ b/source/components/form/password.mjs @@ -20,10 +20,6 @@ import { import { PasswordStyleSheet } from "./stylesheet/password.mjs"; import { fireCustomEvent } from "../../dom/events.mjs"; import "./input-group.mjs"; -import { addErrorAttribute } from "../../dom/error.mjs"; -import { STATE_OFF, STATE_ON } from "./toggle-switch.mjs"; -import { Observer } from "../../types/observer.mjs"; -import { internalSymbol } from "../../constants.mjs"; export { Password }; @@ -90,7 +86,7 @@ class Password extends CustomControl { * @return {string} */ get value() { - return this[inputElementSymbol].value; + return this.getOption("value"); } /** @@ -204,6 +200,11 @@ function initEventHandler() { }); }); + this[inputElementSymbol].addEventListener("input", function (event) { + self.setFormValue(self.value); + self.setOption("value", this.value); + }) + return this; }