From 52f2f84e84390fae1fddb663a71959e29c9387ed Mon Sep 17 00:00:00 2001 From: Saira-A <139405429+Saira-A@users.noreply.github.com> Date: Fri, 23 Aug 2024 09:59:39 +0100 Subject: [PATCH] Disable previous button --- .../modules/uv-pagingheaderpanel-module/PagingHeaderPanel.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/content-handlers/iiif/modules/uv-pagingheaderpanel-module/PagingHeaderPanel.ts b/src/content-handlers/iiif/modules/uv-pagingheaderpanel-module/PagingHeaderPanel.ts index 43237080e..174588398 100644 --- a/src/content-handlers/iiif/modules/uv-pagingheaderpanel-module/PagingHeaderPanel.ts +++ b/src/content-handlers/iiif/modules/uv-pagingheaderpanel-module/PagingHeaderPanel.ts @@ -719,11 +719,13 @@ export class PagingHeaderPanel extends HeaderPanel< disablePrevButton(): void { this.prevButtonEnabled = false; this.$prevButton.disable(); + this.$prevButton.attr("disabled","disabled"); } enablePrevButton(): void { this.prevButtonEnabled = true; this.$prevButton.enable(); + this.$prevButton.removeAttr("disabled"); } disableNextButton(): void {