Smart Select "el" Parameter
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- javascript, typescript
- 領域
- frontend
調査の方向性
まず、リンクされているCodeSandboxを開き、elをセレクターおよびHTMLElementとして設定したsmartSelectParamsでエラーを再現します。Smart Selectのエントリーポイントとelの処理を追跡し、その後、どちらの形式もundefinedプロパティエラーなしで動作することを確認します。報告されたCodeSandboxのシナリオが期待どおりに動作すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Framework7 version: 8.3.4
Platform and Target: Desktop Any Browser
Live Link or CodeSandbox: https://codesandbox.io/p/sandbox/jovial-wescoff-c2n56l?file=%2Fsrc%2FHome.tsx
Describe the bug
Using the "el" parameter in any form (CSS-Selector or HTMLElement) throws an error about reading properties of undefined.
To Reproduce
Just open the sandbox or try building a smart-select with smartSelectParams={{el: "#your-id"}}
Expected behavior
It should work
Actual Behavior
It doesn't
Additional context
No example in the documentation uses the "el" property (Not for smart-select and not for any of the others components that could in theory use the "el" property; e.g. Popup).
Could not find any discussion in the forum on this.
Not much to say about it. It just does not work, or i am on the completely wrong path about how i should use that parameter.
Usecase: All i want to do is to add an id to the smart-select-page, so that i can apply styles specifically to that part of my application. I need this behaviour to show legacy content without destroying the new designs.
- 主要言語
- JavaScript
- スター
- 18.8k
- フォーク
- 3.2k
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
framework7io/framework7 のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
framework7io/framework7#4365 · コメント 1 件 ·
-
propsHistory オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
framework7io/framework7#4347 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
framework7io/framework7#4222 · コメント 3 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
framework7io/framework7#4175 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
framework7io/framework7#3969 · コメント 3 件 ·
framework7io/framework7 の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
antfu-collective/icones#398 ·
-
ECmail.com オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
wesbos/burner-email-providers#554 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
radiantearth/stac-browser#1023 ·
-
HMR stops working オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
components-web-app/docs#92 ·