New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Executing getBoundingClientRect() method raises performance delay in bootstrap 5.3.2 #39428
Comments
I've investigated this issue, and found that this performance problem is caused by this line of code Lines 506 to 508 in 4dcc376
legend {
// Omitted piece of code...
+ * {
clear: left; // 2
}
// Omitted piece of code...
} This line was added as a fix in the following pull request: #30345. It fixes bug/behavior when leading elements after the legend {
float: left; // 1
// Omitted piece of code...
} It was added, because when we want to have a border on the So let's recap. The main reason why all of this was added is the presence of a border on the fieldset {
border: none;
outline: 3px solid #dee2e6;
} This approach works well for rendering a border around a I've already created a pull request for it: #39498. Related issuesP.S. @rajapandiyan-settu P.S.2. @julien-deramond I've noticed that you reacted with the 👀 emoji, so maybe this investigation will be helpful for you. |
Prerequisites
Describe the issue
Hi,
I am using Bootstrap 5.3.2 in my application.
Initially, I have a table, and I dynamically create and remove another table through a button click to calculate some values. For that, I have used the getBoundingClientRect() method.
This functionality worked fine in the previous version (4.6.2). However, with the 5.3.2 version, it is causing a performance delay.
Reduced test cases
Issue sample: https://stackblitz.com/edit/fvhzg3-9vnksx?file=index.html,index.js
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
v5.3.2
The text was updated successfully, but these errors were encountered: