Questions tagged [react-bootstrap4-modal]
30 questions
2
votes
4 answers
How to open bootstrap modal in react component?
Have a react component. Need to open bootstrap modal on page load. Tried using jQuery and simple javascript but with no success.
React Component:
import React, { Component } from 'react'
import $ from 'jquery'
class Login extends Component {
…

Dark Knight
- 995
- 4
- 22
- 48
1
vote
1 answer
How to use Multiple React-Bootstrap modals?
I have a react bootstrap modal where I am mapping my data but the problem is when I click on modals, all the modals display same data, its apparently the last item of the array in all modals. I want to generate modal dynamically and show different…

Nakul Soral
- 13
- 3
1
vote
2 answers
Boostrap Modal React Hook
I am trying to learn React Hooks with a Bootstrap Modal example. I have the following Modal (from the react bootstrap website).
import React, { useState } from "react";
import {Button, Modal} from 'react-bootstrap';
function SimpleModal() {
const…

Colin Dawson
- 133
- 3
- 16
1
vote
2 answers
How can i open just one modal through a map function
im trying to make a subpage for a record label, i need to display all the artists on cards and then have their full profile displayed on a modal, whenever i try to open the modal all of them open and close when i click the card button, i've tried…

Octavio Kh
- 35
- 1
- 6
1
vote
1 answer
Cannot read property 'value' of undefined Error on Modal Popup
I am new to react and am trying to implement this code. However I am getting this error:
handleSubmit
D:/React/employee-app/src/components/AddDepModal.js:14
11 | handleSubmit(event){
12 | event.preventDefault();
13 |
> 14 | …

sandeep pradhan
- 261
- 2
- 8
- 23
1
vote
0 answers
React Bootstrap 3 Modal
I am using the HTML theme provided by the client which uses Bootstrap 3 based modals, I converted the modals using React-Bootstrap (V 0.33.1) Modals and react-bootstrap-modal but turns out that both packages are using context API and I end up having…

Junaid Sarwar
- 189
- 1
- 13
1
vote
0 answers
Unexpected token while using modal in react-bootstrap
Running into an compilation error while trying to create a sidebar using react-bootsrtrap modal.
here is my code:
import Modal from 'react-bootstrap/Modal';
import React, {Component} from 'react';
import "./style.css";
export default class…

Ankit Mishra
- 31
- 7
1
vote
0 answers
Error after call the react-bootstrap Modal
I tried to use Modal from react-bootstrap after clicked on the context menu list item, but I receive an error. I created a project from Asp Core + react template
npm install react-bootstrap bootstrap
Here is my component where I call bootstrap…

Krystian Wolański
- 75
- 9
1
vote
0 answers
React: Redirect withRouter causes Warning: React does not recognize the `staticContext` prop on a DOM element
I have a Modal from React Bootstrap. I want to redirect it using withRouter to a "reports" page after the client has run (onSubmit) a POST request to an API. It all works fine but I keep getting a warning:
index.js:1 Warning: React does not…

clattenburg cake
- 1,096
- 3
- 19
- 40
1
vote
1 answer
Unable to use my reusable react component inside react bootstrap modal
I Have created a resusable textarea react component:
import React from 'react';
import '../form-input/form-input.styles.scss';
const TextAreaComponent = ({ handleChange, label, ...otherProps }) => (
0
votes
1 answer
How to populate table row information into a modal?
I am building a contact list to try to learn React. The API data is populating into my table. I want to be able to edit the contact information if needed. My question is how do I get the table row to populate into a form that spawns in a Modal after…

atomhunt
- 3
- 2
0
votes
0 answers
Is it a bad thing to use window.location.reload instead of a form submit button?
I'm quite new to Web Dev and I'm making a management system app in react. I have a React bootstrap Form that the user can use to edit the details of an entry in a Modal. However, the way things are set up, I can't use the Form Submit event to reload…

Myles Louw
- 33
- 3
0
votes
3 answers
Background goes black when react-bootstrapv2.5.0 modal opens
So Basilcally I am using this react-bootstrap modal.
I am using React with react-bootstrap components. I implemented it but when I opens it, instead of translucent background (opacity 0.5), the background appears black.
As you can see also . The…

MagnusEffect
- 3,363
- 1
- 16
- 41
0
votes
0 answers
React bootstrap modal does not display when google maps is fullscreen
In my react.js web app, I launch a react bootstrap modal menu from a google map and it displays correctly. However, when I display the google map in fullscreen mode, the react bootstrap modal menu does not display. The information I've found so far,…

Tom
- 63
- 6
0
votes
1 answer
How solve React problem (TypeError: Cannot read property 'showModel' of null)
Here is show that how set attribute showModel and give it false:
Main.js
import React from 'react'
import 'bootstrap/dist/css/bootstrap.min.css';
import Form from 'react-bootstrap/Form'
import Button from 'react-bootstrap/Button'
import…

mona alobisat
- 15
- 5