web/elements: don't send value from writeOnly field that hasn't been modified (#5614)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
ff1510dedc
commit
52132112f6
|
@ -142,6 +142,10 @@ export abstract class Form<T> extends AKElement {
|
||||||
if (element.hidden || !inputElement) {
|
if (element.hidden || !inputElement) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// Skip elements that are writeOnly where the user hasn't clicked on the value
|
||||||
|
if (element.writeOnly && !element.writeOnlyActivated) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (
|
if (
|
||||||
inputElement.tagName.toLowerCase() === "select" &&
|
inputElement.tagName.toLowerCase() === "select" &&
|
||||||
"multiple" in inputElement.attributes
|
"multiple" in inputElement.attributes
|
||||||
|
|
Reference in New Issue