mirror of
https://github.com/dzeiocom/FormManager.git
synced 2025-04-23 03:12:14 +00:00
Updated getName
This commit is contained in:
parent
e9a0dfe68e
commit
dfa6058cf0
@ -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")
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user