-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[5.0.0-dev] codemirror hints #14475
Labels
Bug
A problem or regression with an existing feature
ui
Issues relating to the user interface
waiting on upstream
Issues blocked by a third-party
Milestone
Comments
This also happens in the console. |
Git bisect found that 393204c is the bad commit |
This is the bad change diff --git a/js/vendor/codemirror/addon/hint/sql-hint.js b/js/vendor/codemirror/addon/hint/sql-hint.js
index 9601f14e0e..e3017fb313 100644
--- a/js/vendor/codemirror/addon/hint/sql-hint.js
+++ b/js/vendor/codemirror/addon/hint/sql-hint.js
@@ -275,7 +275,7 @@
if (search.charAt(0) == "." || search.charAt(0) == identifierQuote) {
start = nameCompletion(cur, token, result, editor);
} else {
- addMatches(result, search, defaultTable, function(w) {return {text:w, className: "CodeMirror-hint-table CodeMirror-hint-default-table"};});
+ addMatches(result, search, defaultTable, function(w) {return w;});
addMatches(result, search, tables, function(w) {return w;});
if (!disableKeywords)
addMatches(result, search, keywords, function(w) {return w.toUpperCase();}); |
Made PR codemirror/codemirror5#5819 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Bug
A problem or regression with an existing feature
ui
Issues relating to the user interface
waiting on upstream
Issues blocked by a third-party
Steps to reproduce
WHERE
Expected behaviour
Show type hint
https://demo.phpmyadmin.net/QA_4_8/index.php?db=world&table=City&target=tbl_sql.php&server=1
Actual behaviour
Shows [object object]
https://demo.phpmyadmin.net/master-config/tbl_sql.php?db=world&table=City&server=1
Browser
Google chrome : Version 67.0.3396.99 (Build officiel) (64 bits)
The text was updated successfully, but these errors were encountered: