#
modals
Modal dialog components and events
WebWhy Bootstrap Modal shown.bs.modal Fires Twice in React useEffect
Learn why Bootstrap 'shown.bs.modal' event fires twice in React useEffect (empty deps, no StrictMode) but once in plain JS. Fixes include cleanup, ref guards, and react bootstrap alternatives for reliable modal events.
6 answers• 1 view
WebPass Data ID to Bootstrap Modal from Hyperlink
Learn how to pass a unique data-id from a link to a hidden input in Bootstrap modal using show.bs.modal event and relatedTarget. Fix common issues with data-toggle, BS4/BS5 examples, and troubleshooting for reliable dynamic modals.
5 answers• 3 views
ProgrammingHow to Place Text and Button on Same Line in Discord Embed
Learn why Discord doesn't allow buttons inline with embed text, use inline fields for alignment, add action row buttons below, and handle clicks to open modals with discord.js examples for bot messages.
1 answer• 2 views