From 5453df11e5283bc51ba3b4e77f00ed2d4a0a6bb0 Mon Sep 17 00:00:00 2001 From: Saurabh Kumar Bajpai Date: Thu, 30 Jul 2026 23:16:13 +0530 Subject: [PATCH] fix: improve error handling --- examples/widget-gallery/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/widget-gallery/src/index.ts b/examples/widget-gallery/src/index.ts index 57b141244..ec688a7fc 100644 --- a/examples/widget-gallery/src/index.ts +++ b/examples/widget-gallery/src/index.ts @@ -129,7 +129,7 @@ class WidgetGalleryApp extends Widget { } // Tab switching: 1-6 - const num = parseInt(event.key); + const num = parseInt(event.key, 10); if (num >= 1 && num <= 6) { this._switchTab(num - 1); return true;