mirror of
https://github.com/dzeiocom/FormManager.git
synced 2025-07-28 15:59:52 +00:00
Updated getName
This commit is contained in:
@ -45,7 +45,7 @@ export default class FMInput {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getName(): string {
|
getName(): string {
|
||||||
return this.element.getAttribute("name")
|
return this.element.getAttribute("name") == undefined ? this.element.dataset.name : this.element.getAttribute("name")
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user