mirror of
https://github.com/dzeiocom/FormManager.git
synced 2025-07-24 22:09:50 +00:00
Updated getName
This commit is contained in:
@ -45,7 +45,7 @@ export default class FMInput {
|
||||
}
|
||||
|
||||
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