scrolling modal in bootstrap does not function properly if a navigation tab is included within it

I am encountering an issue with a scrolling Bootstrap modal. When I include a nav-tabs within the modal, the scroll function stops working. However, if I remove the nav-tabs, the functionality returns. Do you have any insights on how to solve this problem?

You can view and test the issue in this JSFiddle link.

Please share any thoughts or ideas on resolving this matter. Thank you!

Answer №1

Simply include overflow:scroll in the

modal-dialog-scrollable .modal-content
class

.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 1rem);
    overflow: scroll;
}

Answer №2

There seems to be an issue with the placement of the <form> tag before the modal tags.

You can find the updated version here:

https://jsfiddle.net/8sjkzb30/

Answer №3

Give this a shot in your CSS:

 scroll {
    overflow: scroll;
    overflow-x: hidden;
    max-height: 850px;
}

It did the trick for me!

Answer №4

Increase the height in .modal-body using pixels

    #add_wishlist_Modal .modal-body{
  height:150px;
}

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Issues with Javascript Date Function malfunctioning

I'm having trouble getting the text 'Oct 09, 2012' to display properly. Instead of running the function correctly, a bunch of unnecessary date text is showing up. Can anyone figure out what I'm doing wrong? Feel free to experiment with ...

What is the best way to retrieve the dates for the current month as well as the following month

I have a php script that I need to modify in order to display the current month and the next month's dates using PHP. Below are the functions I am currently using for this purpose. html/php code (functions for current month and next month): <!-- D ...

Concentrating on a Div Element in React

I'm trying to set up an onKeyPress event that will be triggered when a key is pressed while a 'Level' element is displayed. I know that the div needs to be focused for events to register, but I'm not sure how to do this with functional ...

Using postMessage to communicate with the localstorage of an iframe from a separate domain

I have a question regarding the challenges of using localStorage for performance reasons and any potential workarounds. From what I gather, once a reference to localStorage is detected on a page (at compile time?), it blocks the thread to read data from di ...

Display a list with collapsed columns on an accordion format for a more compact view on smaller screens

My Bootstrap table setup looks like this: <table class="table table-striped"> <thead> <tr> <th>Date</th> <th>Name</th> <th>LastName</th> <th>Color</th> <th>Car</th> ...

Using Thymeleaf to enhance Bootstrap tabs

When retrieving data from the controller: public Mono<String> getShops(){ ..... model.addAttribute("shops", shops); return Mono.just("shoppage"); } I have a tab with a table in my shoppage.html: <ul class="nav na ...

Using the `ng-if` directive in Angular to check for the

I need to output data in JSON format using items. To display a single item, I utilize ng-repeat="item in items". Additionally, I can access the user object of the currently logged-in user with user. Every item has the ability to belong to multiple wishlis ...

When using xmlHttpRequest, the euro symbol may appear as a question mark

This dynamic script (taken from dynamicdrive) allows me to fill a div with the specified id dynamically: var bustcachevar=1 //bust potential caching of external pages after initial request? (1=yes, 0=no) var loadedobjects="" var rootdomain="ht ...

Move a div by dragging and dropping it into another div

Situation Within my project, there is a feature that involves adding a note to a section and then being able to move it to other sections, essentially tracking tasks. I have successfully implemented the functionality to dynamically add and drag notes with ...

What is the best way to postpone one of the 3 ajax requests?

Can anyone assist me with handling AJAX forms? I am trying to ensure that the smallest one is executed after the others, but I also want to introduce a delay in the process. I attempted to utilize setTimeout(), however, it does not seem to be functioning ...

Using HTML: The trick to obtaining selection offsets in relation to HTML tags

Let's say I have HTML code like this: <div> <p> start<span>span</span>end </p> </div> I am looking for a way to retrieve the offsets when text is selected, while still taking into account the presence of span ...

Text and Image Blend in Unique Single Column Design

Seeking advice as a beginner in HTML/CSS on how to create a 3-row single column layout with images and text next to each other. Tried using the flexbox model for the text column but struggling to align them properly. Any suggestions on a better approach fo ...

The Angular 2 application is experiencing issues with displaying the Bootstrap 4.3 Modal

I am new to Angular so please forgive me if this question sounds silly. I am trying to implement a modal in my app and I followed an example from Bootstrap's documentation. However, the modal doesn't seem to work in my app. Everything else has be ...

Sorting through an array of objects based on TypeScript's union types

My array consists of objects such as: array = [{name: 'something'}, {name: 'random'}, {name: 'bob'}] I have created a union type type NamesType = 'something' | 'bob' Can the array be filtered based on t ...

Ways to Retrieve Material-UI Date Picker Data

I am struggling to figure out how to set the value selected by the user in a material-ui datepicker to state. Any help would be greatly appreciated. Currently, this is what I have been trying: The datepicker component code looks like this: <DatePicke ...

Duplicate instances of the Sunburst-chart component are being created each time the chart is rendered

I've integrated the sunburst chart package into my React app. I'm using its chart method within useEffect, passing in data and including the data variable in the dependency array. The initial rendering works fine, but whenever the data is updated ...

Struggling with the display property d-none in Bootstrap

I'm currently attempting to show a segment of my code exclusively on medium-sized screens and larger, while displaying another portion of the code solely on small and extra-small screens through the utilization of Bootstrap. I made use of Bootstrap&ap ...

"A common error that may occur in Node.js is the inability to set headers after they have

I have encountered an issue while working on my node js application. I can load the page successfully once, but then I start getting an error message saying "Can't set headers after they are sent". If anyone has any suggestions or advice on how to re ...

The Facebook Canvas feature is currently experiencing difficulties with logging in through mobile devices

I am encountering an issue with my canvas Facebook application that has both a web page and a designated mobile page. The web page functions properly, and when I simulate the browser to mobile using the console, everything works fine. However, when I atte ...

The functionality of Angular Views is experiencing issues

I'm confused as to why the JavaScript isn't functioning properly. Whenever I click on the links, the views fail to load. <html ng-app> <head> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/a ...