Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Smart Select "el" Parameter

オープン
#4,323 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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 はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

framework7io/framework7 のほかの issue

framework7io/framework7 の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。