xxxxxxxxxx
1
<div class="d-flex justify-content-center align-items-center" style="height:10rem;">
2
<button type="button" class="btn btn-primary" data-mdb-ripple-init data-mdb-modal-init data-mdb-target="#modalAdd">
3
Open modal
4
</button>
5
<div class="modal fade addNewInputs" id="modalAdd" tabindex="-1" role="dialog" aria-labelledby="modalAdd" aria-hidden="true">
6
<div class="modal-dialog modal-lg" role="document">
7
<div class="modal-content">
8
<div class="modal-header text-center">
9
<h4 class="modal-title w-100 fw-bold text-primary ml-5">Long modal</h4>
10
<button type="button" class="btn-close" data-mdb-ripple-init data-mdb-dismiss="modal" aria-label="Close"></button>
11
</div>
12
<div class="modal-body">
13
<select class="" id="ddlPerson2" data-mdb-select-init >
14
<option value="" disabled selected>THIS SELECT IS WORKING</option>
15
<option value="1">Person1</option>
16
<option value="2">Person2</option>
17
<option value="3">Person3</option>
18
<option value="4">Person4</option>
19
</select>
20
<div class=" m-2 p-2" style="height: 1500px; background-color: aquamarine;">
21
<p>
22
The select at the top of the page is working fine. The one at the bottom of this modal is not (always) working. If you need to scroll down the modal in order to see it, when selecting one of the available option the page is automatically scrolled back to the top and the option is not selected.
23
</p>
24
<p>
25
This problem depends by the user's monitor size: this page may work fine in large monitors. If you zoom out the page, both Selects are working
26
</p>
27
<p>
28
This issue is also quite herratic. On my experience it happens 2/3 of the times I refresh this page
29
</p>
30
<p>
31
This div is 1500px long
32
</p>
33
<h4 class="text-center">
34
Please scroll down...
35
</h4>
36
</div>
37
<select class="" id="ddlPerson" data-mdb-container="#modalAdd" data-mdb-select-init >
38
<option value="" disabled selected>THIS SELECT IS NOT WORKING</option>
39
<option value="1">Person1</option>
40
<option value="2">Person2</option>
41
<option value="3">Person3</option>
42
<option value="4">Person4</option>
43
</select>
44
</div>
45
</div>
46
</div>
47
</div>
48
</div>
49
1
1
1
1
Console errors: 0