From ec84c72ef955d3f9be1a908bdd657f54077950d2 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Mon, 13 Jun 2022 15:54:18 +0200 Subject: [PATCH] Fix scrolling issue in `Tab` component when using arrow keys (#1584) * prevent scrolling the page when using arrow keys in * update changelog * bump prettier Does GitHub Actions have an incorrect cache somehow? * use Active LTS in CI --- .github/workflows/main.yml | 2 +- package.json | 2 +- packages/@headlessui-react/CHANGELOG.md | 1 + .../src/components/tabs/tabs.tsx | 28 ++++++++++-------- packages/@headlessui-vue/CHANGELOG.md | 1 + .../src/components/tabs/tabs.ts | 29 +++++++++++-------- yarn.lock | 8 ++--- 7 files changed, 41 insertions(+), 30 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2122e99..288ec97 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,7 @@ concurrency: cancel-in-progress: true env: - NODE_VERSION: 12.x + NODE_VERSION: 16.x jobs: install: diff --git a/package.json b/package.json index b249e00..ed0d5c1 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "jest": "26", "lint-staged": "^12.2.1", "npm-run-all": "^4.1.5", - "prettier": "^2.5.1", + "prettier": "^2.6.2", "prettier-plugin-tailwindcss": "^0.1.4", "rimraf": "^3.0.2", "tslib": "^2.3.1", diff --git a/packages/@headlessui-react/CHANGELOG.md b/packages/@headlessui-react/CHANGELOG.md index afb18d9..b0bbeaa 100644 --- a/packages/@headlessui-react/CHANGELOG.md +++ b/packages/@headlessui-react/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Improve outside click of `Dialog` component ([#1546](https://github.com/tailwindlabs/headlessui/pull/1546)) - Detect outside clicks from within `