-
I am using blueprintjs with Vanilla JS, as described here: https://blueprintjs.com/docs/#blueprint/getting-started.vanilla-js-apis Then I create a RadioGroup with Radio buttons like this:
And get a component that looks like this: Now, whenever I click any of the radio buttons, it just stays like that, i.e. it doesn't show/render the current option as selected. The callback for the onChange event gets called with the correct value, so that's weird. Is this a bug or am I missing something in the implementation? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
It looks like you never update any of the radio components to be marked as selected in the Please try to produce a bug repro in the code sandbox link provided in the issue template, if possible. If no such repro is possible, then it's likely not a bug. |
Beta Was this translation helpful? Give feedback.
-
I saw the sandbox but it ws not set up to work w/ Vanilla JS as in the provided example, I could still share a codepen or something if you think that's convenient.
That's what I've been trying to do w/ no avail, could you provide an example of this? Sorry if i'm being kind of a noob here but well ... that what's I am. Also, because of the particular context where we are using this, we have to resort to Vanilla JS, hence why I'm trying to get this to work. |
Beta Was this translation helpful? Give feedback.
It looks like you never update any of the radio components to be marked as selected in the
onChange
event handler. You need to setRadioGroup
'sselectedValue
prop.Please try to produce a bug repro in the code sandbox link provided in the issue template, if possible. If no such repro is possible, then it's likely not a bug.