@vinhyan
Posted
Looks awesome! How did you make the modal show a specific position when open? i.e. when you click on Black Edition Stand reward, the modal opens automatically scrolling down to its position?
@richardcyrus
Posted
@vinhyan In the Vue.js code, I added a reference (ref='name'
) to each of the reward input section div
s, then when the modal is opened, I call the scrollIntoView()
JavaScript function on that reference. Look at the openPledgeModal()
function in my code, and look for the associated ref
in the source HTML. Clicking a specific button also changes styles and makes the radio button :checked
using the v-model
pledgeChoice
value.
@vinhyan
Posted
@richardcyrus I see thank you for sharing!