mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
prettier
This commit is contained in:
@@ -136,7 +136,7 @@ export default class WaButton extends WebAwesomeFormAssociatedElement {
|
||||
const button = document.createElement('button');
|
||||
|
||||
for (const attribute of this.attributes) {
|
||||
button.setAttribute(attribute.name, attribute.value)
|
||||
button.setAttribute(attribute.name, attribute.value);
|
||||
}
|
||||
|
||||
button.type = this.type;
|
||||
|
||||
@@ -209,19 +209,18 @@ export class WebAwesomeFormAssociatedElement
|
||||
* to place the form control outside of a form and associate it with the form that has this `id`. The form must be in
|
||||
* the same document or shadow root for this to work.
|
||||
*/
|
||||
set form (val: string) {
|
||||
set form(val: string) {
|
||||
if (val) {
|
||||
this.setAttribute("form", val)
|
||||
this.setAttribute('form', val);
|
||||
} else {
|
||||
this.removeAttribute("form")
|
||||
this.removeAttribute('form');
|
||||
}
|
||||
}
|
||||
|
||||
get form (): HTMLFormElement | null {
|
||||
return this.internals.form
|
||||
get form(): HTMLFormElement | null {
|
||||
return this.internals.form;
|
||||
}
|
||||
|
||||
|
||||
@property({ attribute: false, state: true, type: Object })
|
||||
get validity() {
|
||||
return this.internals.validity;
|
||||
|
||||
Reference in New Issue
Block a user