proud-librarian-99598
08/20/2022, 8:02 PMmysterious-toddler-20573
08/20/2022, 8:03 PMproud-librarian-99598
08/20/2022, 8:04 PMmysterious-toddler-20573
08/20/2022, 8:05 PMSystem event Actual latency Scaled latency
------------ -------------- --------------
One CPU cycle 0.4 ns 1 frame (1/60 s)
Level 1 cache access 0.9 ns 2 frames
Level 2 cache access 2.8 ns 7 frames
Level 3 cache access 28 ns 1 s
Main memory access (DDR) ~100 ns 4 s
Intel Optane memory access <10 μs 7 min
NVMe SSD I/O ~25 μs 17 min
SSD I/O 50–150 μs 0.5—2 hrs
Rotational disk I/O 1–10 ms 0.5—5 days
Internet call: SF to NYC 65 ms 1 month
Internet call: SF to Hong Kong 141 ms^3 2 months
proud-librarian-99598
08/20/2022, 8:05 PMquiet-nightfall-51817
08/20/2022, 8:15 PMquiet-nightfall-51817
08/20/2022, 8:21 PMproud-librarian-99598
08/20/2022, 8:25 PMproud-librarian-99598
08/20/2022, 8:27 PMquiet-nightfall-51817
08/20/2022, 8:27 PMmysterious-toddler-20573
08/20/2022, 8:29 PMquiet-nightfall-51817
08/20/2022, 8:33 PMquiet-nightfall-51817
08/20/2022, 8:35 PMquiet-nightfall-51817
08/20/2022, 8:37 PMquiet-nightfall-51817
08/20/2022, 8:38 PMquiet-nightfall-51817
08/20/2022, 8:47 PMhallowed-architect-39752
08/20/2022, 8:49 PMhallowed-architect-39752
08/20/2022, 8:49 PMquiet-nightfall-51817
08/20/2022, 8:50 PMquiet-nightfall-51817
08/20/2022, 8:52 PMquiet-nightfall-51817
08/20/2022, 8:56 PMquiet-nightfall-51817
08/20/2022, 9:06 PMhallowed-architect-39752
08/20/2022, 11:38 PMlittle-thailand-67217
08/21/2022, 4:15 AMlittle-thailand-67217
08/21/2022, 4:28 AMpath/to/ext/debug.js
should probably be an unpkg path to complete the example e.g. https://unpkg.com/browse/htmx.org@1.8.0/dist/ext/debug.js
. Just my two sense.happy-knife-63802
08/21/2022, 6:34 AMmammoth-family-48524
08/21/2022, 9:31 AMnewActiveElt.focus(focusOptions);
. Any ideas?
This the HTMX code that is causing it.
<form hx-post="/invite-client" hx-swap="outerHTML">
<sl-dialog label="Invite client" id="invite-client-dialog">
<sl-input name="email" type="email" label="Carer's email address" value="" required="" size="medium" invalid="">
</sl-input>
<sl-button slot="footer" variant="primary" type="submit" id="invite-client-save" size="medium">Send invitation</sl-button>
<sl-button slot="footer" variant="text" id="invite-client-cancel" size="medium">Cancel</sl-button>
</sl-dialog>
</form>
mammoth-family-48524
08/21/2022, 9:34 AMmammoth-family-48524
08/21/2022, 9:47 AMnewActiveElt = sl-button#invite-client-save
mammoth-family-48524
08/21/2022, 10:04 AM// src/components/button/button.ts
var SlButton = class extends s {
constructor() {
super(...arguments);
this.formSubmitController = new FormSubmitController(this, {
form: (input) => {
if (input.hasAttribute("form")) {
const doc = input.getRootNode();
const formId = input.getAttribute("form");
return doc.getElementById(formId);
}
return input.closest("form");
}
});
this.hasSlotController = new HasSlotController(this, "[default]", "prefix", "suffix");
this.localize = new LocalizeController(this);
this.hasFocus = false;
this.variant = "default";
this.size = "medium";
this.caret = false;
this.disabled = false;
this.loading = false;
this.outline = false;
this.pill = false;
this.circle = false;
this.type = "button";
}
click() {
this.button.click();
}
focus(options) {
this.button.focus(options); **<-- line 70 is this one**
}