Don't obscure text of form buttons under maskAllInputs (more modern style would be a <button>) (#35)

This commit is contained in:
Eoghan Murray
2020-07-17 16:17:07 +01:00
committed by GitHub
parent 647e314179
commit 63c3bd744e

View File

@@ -242,6 +242,8 @@ function serializeNode(
if (
attributes.type !== 'radio' &&
attributes.type !== 'checkbox' &&
attributes.type !== 'submit' &&
attributes.type !== 'button' &&
value
) {
attributes.value = maskAllInputs ? '*'.repeat(value.length) : value;