-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Toolbar table sort script interfering with project tables in development environment #6808
Comments
I confirmed the bug. <?php
namespace App\Controllers;
class Home extends BaseController
{
public function index()
{
return '<table>
<thead>
<tr><th>Col1</th><th>Col2</th></tr>
<thead>
<tbody>
<tr><td>100</td><td>a</td></tr>
<tr><td>2</td><td>b</td></tr>
<tr><td>3</td><td>d</td></tr>
</tbody>
<table>';
}
} |
This feature is provided by Kint. |
Created a hackfix that is not causing any errors.
This will check if parent element is our debug bar. |
Exactly the same happend to me, thank you for the provided information! |
I don't know the details. And we cannot patch Kint. If Kint's js breaks our apps, it seems to be a bug in Kint. |
Closing as this is not a bug of the framework. |
@paulbalandan Do you know why toolbar outputs Kint's js? |
This is because of this line: CodeIgniter4/system/Debug/Toolbar.php Line 116 in ad783a8
If we passed data to |
PHP Version
7.4
CodeIgniter4 Version
4.2.8
CodeIgniter4 Installation Method
Manual (zip or tar.gz)
Which operating systems have you tested for this bug?
Windows, Linux
Which server did you use?
apache
Database
MySQL 5.6
What happened?
Toolbar table sort script interfering with project tables in development environment.
Steps to Reproduce
1.Set environment to development
2.Create a table with headers as for example
3.Click on any of the table headers and the table will be sorted
Expected Output
This shouldn't happen because is interfering with custom table sort scripts.
Anything else?
No response
The text was updated successfully, but these errors were encountered: