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

This commit is contained in:
Eoghan Murray
2026-04-01 12:00:00 +08:00
committed by GitHub
parent 73901d9e59
commit 79fe0d1fd8

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;