show shared link enable button on disabled link page

This commit is contained in:
Alex Turchyn
2025-06-23 19:35:39 +03:00
committed by Pete Matsyburka
parent a6715d4034
commit 7b1b4bcf2c
4 changed files with 54 additions and 22 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
export default class extends HTMLElement {
connectedCallback () {
this.addEventListener('click', () => {
if (!this.element.checked) {
if (this.element && !this.element.disabled && !this.element.checked) {
this.element.checked = true
this.element.dispatchEvent(new Event('change', { bubbles: true }))
}