Skip to content
Snippets Groups Projects
Verified Commit ecc4e204 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: update password value to input event #302

parent c21268da
No related branches found
No related tags found
No related merge requests found
......@@ -487,7 +487,7 @@ function getTranslations() {
case "hi":
return {
username: "उपय\A4\97कर नम य ई-मल",
username: "उपयकर नम य ई-मल",
password: "पसवर",
login: "लग इन कर",
forgotPasswordLink: "पसवर भल गए?",
......
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment