fix: change default value of input type from null to text (#1200)
* fix: change default value of input type from null to text * Apply formatting changes * add changeset * add a comment related to the type of input element
This commit is contained in:
@@ -256,6 +256,7 @@ export function isNodeMetaEqual(a: serializedNode, b: serializedNode): boolean {
|
||||
* where passwords should be masked.
|
||||
*/
|
||||
export function getInputType(element: HTMLElement): Lowercase<string> | null {
|
||||
// when omitting the type of input element(e.g. <input />), the type is treated as text
|
||||
const type = (element as HTMLInputElement).type;
|
||||
|
||||
return element.hasAttribute('data-rr-is-password')
|
||||
|
||||
Reference in New Issue
Block a user