Don't obscure text of form buttons under maskAllInputs (more modern style would be a <button>) (#35)
This commit is contained in:
@@ -242,6 +242,8 @@ function serializeNode(
|
|||||||
if (
|
if (
|
||||||
attributes.type !== 'radio' &&
|
attributes.type !== 'radio' &&
|
||||||
attributes.type !== 'checkbox' &&
|
attributes.type !== 'checkbox' &&
|
||||||
|
attributes.type !== 'submit' &&
|
||||||
|
attributes.type !== 'button' &&
|
||||||
value
|
value
|
||||||
) {
|
) {
|
||||||
attributes.value = maskAllInputs ? '*'.repeat(value.length) : value;
|
attributes.value = maskAllInputs ? '*'.repeat(value.length) : value;
|
||||||
|
|||||||
Reference in New Issue
Block a user