Skip to content

Commit ceb1593

Browse files
committed
chore: Add a comment about recursive calls in _setShinyInput()
1 parent 639e39c commit ceb1593

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

srcts/src/components/card.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ class Card {
173173
if (!this.card.classList.contains(Card.attr.CLASS_SHINY_INPUT)) return;
174174
if (!Shiny) return;
175175
if (!Shiny.setInputValue) {
176+
// Shiny isn't ready yet, so we'll try to set the input value again later,
177+
// (but it might not be ready then either, so we'll keep trying).
176178
if (Shiny.shinyapp) {
177179
Shiny.shinyapp.taskQueue.enqueue(() => this._setShinyInput());
178180
} else {

0 commit comments

Comments
 (0)