React-tabs dropped clicks on tab switch when inspecting on mobile device
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, react
調査の方向性
リンク先の CodeSandbox と gxpfor.csb.app を mobile view を有効にした Chrome DevTools で開き、入力欄周辺で発生するタブ切り替えの取りこぼしを再現します。クリック動作を追跡する前に、issue に示されている ReactTabs、ReactList、ReactTab の使用方法を確認してください。報告された mobile-view の設定で、各タブをクリックすると確実に対応するパネルへ切り替われば完了です。
索引モデルが issue の本文から書いたものです。
説明
I have a really weird problem with react-tabs
I have 2 desktops:
- Samsung 4k LU28R550UQUXEN
- MacBook pro m2 14"
Now if I run this code in the latest google chrome 108.0.5359.124 and then turn on mobile view (any mobile device)
Sometimes when I click on a tab, the input above gets focused but the tab didn't switch.
I have to click on the bottom of the text to switch the tabs.
What's most weird is when I drag the browser window to my mac, this problem does not exist.
import React, { useState } from "react";
import {
Tab as ReactTab,
Tabs as ReactTabs,
TabList as ReactList,
TabPanel as Panel
} from "react-tabs";
import "react-tabs/style/react-tabs.css";
const tabs = ["Not Started", "In Progress", "Completed"];
export default function App() {
const [activeTab, setActiveTab] = useState(0);
return (
<ReactTabs tabIndex={activeTab} setTabIndex={setActiveTab}>
<div>
<input placeholder="Type here" />
<ReactList>
{tabs.map((tab) => (
<ReactTab key={tab} data-cy={tab}>
{tab}
</ReactTab>
))}
</ReactList>
</div>
<div>
<Panel>ccc</Panel>
<Panel>bbb</Panel>
<Panel>111</Panel>
</div>
</ReactTabs>
);
}
code:
https://codesandbox.io/s/async-cloud-gxpfor
Just visit: https://gxpfor.csb.app/ and open developer tools with a mobile view
https://user-images.githubusercontent.com/193701/211524839-67a968ea-349a-406b-bf03-641643c6a0c1.mov
- 主要言語
- JavaScript
- スター
- 3.1k
- フォーク
- 455
- 平均マージ
- 5時間 9分
- マージ済み PR(30日)
- 2
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
reactjs/react-tabs のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
reactjs/react-tabs#584 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
reactjs/react-tabs#581 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
reactjs/react-tabs#571 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
reactjs/react-tabs#525 · コメント 1 件 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
reactjs/react-tabs#521 · コメント 3 件 ·
reactjs/react-tabs の issue をすべて見る
似ている issue
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
georgestephanis/p2026#40 ·
-
Enatega Customer and Rider app: Add-ons price is not visible to customer after order is placed. オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Margaret-Petersen/food-delivery-app-clone-react-native#1981 ·