Datepicker changes a natively disabled input if its calendar is open
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, jquery
- Ambito
- frontend
Direzione di ricerca
Start with the Datepicker selection and disabled-input handling in the jQuery UI source, then inspect its Datepicker tests for coverage of selecting a date after the input becomes disabled while the calendar is open. Add a regression test for the reported steps; done means the date stays May 5 and onSelect does not run. Pull request #2424 is already open against this issue.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Steps to reproduce
With jQuery UI Datepicker and its theme loaded, add the following:
<input id="date" value="05/05/2027">
<button onclick="setTimeout(() => { document.querySelector('#date').disabled = true; }, 1500)">
Disable in 1.5 seconds
</button>
<script>
$("#date").datepicker({ dateFormat: "mm/dd/yy" });
</script>
- Click Disable in 1.5 seconds.
- Open the calendar before the timer fires.
- After the input becomes disabled, click May 12.
Expected: the input remains May 5 and onSelect does not run. Actual: the open calendar changes the disabled input to May 12 and runs onSelect.
Reproduced on jQuery UI 1.14.3-pre at dcf1055, with jQuery 4.0.0 and Chrome 157.0.8103.78 on macOS 27.0.1.
- Lingua principale
- JavaScript
- Stelle
- 11.3k
- Fork
- 5.2k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di jquery/jquery-ui
-
Selectmenu changes selection after its native select is disabled while openForse già presa @Xapollon430 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Behavior shared with 1.12 Comp: Datepicker
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
Comp: Datepicker Needs info
Difficoltà 3/5 1-2 giorni Idoneità per principianti 53/100
-
CSS variable stripped from calls to jQuery .css()Forse già presa Una pull request collegata a questa issue è aperta o già unita. ApertaComp: Effects
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
-
Needs info
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
Tutte le issue di jquery/jquery-ui
Issue simili
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
coder/claudecode.nvim#588 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
digitalbazaar/http-client#60 ·
-
Ruby: The link in the Blocks lesson points to an external article that isn't at that address anymoreAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
TheOdinProject/curriculum#31529 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
topmonks/hlidac-shopu#3687 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ONLYOFFICE/DocumentServer#3912 · 1 commento ·