Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Smart Select "el" Parameter

Aperta
#4,323 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
javascript, typescript
Ambito
frontend

Direzione di ricerca

Inizia aprendo il CodeSandbox collegato e riproducendo l'errore con smartSelectParams impostato su el come selettore e come HTMLElement. Traccia il punto di ingresso di Smart Select e la gestione di el, quindi verifica che entrambe le forme funzionino senza l'errore di proprietà undefined. È completato quando lo scenario di CodeSandbox segnalato funziona come previsto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
JavaScript
Stelle
18.8k
Fork
3.2k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di framework7io/framework7

Tutte le issue di framework7io/framework7

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.