refactor: ♻️ Refactor Alert

This commit is contained in:
Maicol Battistini 2021-11-09 15:32:10 +01:00
parent 265bc1e98f
commit 868a57b2a4
No known key found for this signature in database
GPG Key ID: 4FDB0F87CDB1D34A
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ export default class Alert extends Component implements ClassComponent<{
);
}
oninit() {
oninit(vnode) {
if (this.attrs.get('id')) {
this.attrs.put('id', uniqueId('dialog_'));
}