Dropdown does not work with parameter raw=true
What happened just before the problem occurred
Without login in I was reading a wiki page which had a query string parameter raw=true. And then only remembered I should login to see some features of inline-markdown-editor work. But the dropdown link does not work for me to login. Once logged in without the parameter, it still does not work with raw=true parameter.
Relevant URLs
https://publiclab.org/wiki/sandbox?raw=true
After quite a bit of searching I observed that if I remove the PublicLab.Editor.js the dropdown works fine. The Editor is somehow blocking the bootstrap dropdown. Same thing happens in the /post page too. @jywarren Can you have a look at this ?
Ohhhh yes this came up before -- since publiclab.editor includes jQuery, the listeners for clicks run twice so its opened and closed at the same time. I had been trying to develop a way to get the editor to detect if jQuery were already loaded, and no reload it, but didn't come up with a solution. I believe I had a pull request open for it, let me look.
On May 27, 2017 4:24 PM, "Ananyo Maiti" [email protected] wrote:
After quite a bit of searching I observed that if I remove the PublicLab.Editor.js the dropdown works fine. The Editor is somehow blocking the bootstrap dropdown. Same thing happens in the /post page to. @jywarren https://github.com/jywarren Can you have a look at this ?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/1434#issuecomment-304474626, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJzLwzTeR38u7UX8FKQS6I0cBCNWzks5r-IZ0gaJpZM4NmmWx .
I guess I never opened one. I had been testing code at the point where I do the "require('jquery')" step but couldn't get tests to pass. It seemed like quite a tough problem!
On May 27, 2017 4:26 PM, "Jeffrey Warren" [email protected] wrote:
Ohhhh yes this came up before -- since publiclab.editor includes jQuery, the listeners for clicks run twice so its opened and closed at the same time. I had been trying to develop a way to get the editor to detect if jQuery were already loaded, and no reload it, but didn't come up with a solution. I believe I had a pull request open for it, let me look.
On May 27, 2017 4:24 PM, "Ananyo Maiti" [email protected] wrote:
After quite a bit of searching I observed that if I remove the PublicLab.Editor.js the dropdown works fine. The Editor is somehow blocking the bootstrap dropdown. Same thing happens in the /post page to. @jywarren https://github.com/jywarren Can you have a look at this ?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/1434#issuecomment-304474626, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJzLwzTeR38u7UX8FKQS6I0cBCNWzks5r-IZ0gaJpZM4NmmWx .
But we should open an issue over there and ask for help! https://github.com/publiclab/PublicLab.Editor/issues
On May 27, 2017 4:30 PM, "Jeffrey Warren" [email protected] wrote:
I guess I never opened one. I had been testing code at the point where I do the "require('jquery')" step but couldn't get tests to pass. It seemed like quite a tough problem!
On May 27, 2017 4:26 PM, "Jeffrey Warren" [email protected] wrote:
Ohhhh yes this came up before -- since publiclab.editor includes jQuery, the listeners for clicks run twice so its opened and closed at the same time. I had been trying to develop a way to get the editor to detect if jQuery were already loaded, and no reload it, but didn't come up with a solution. I believe I had a pull request open for it, let me look.
On May 27, 2017 4:24 PM, "Ananyo Maiti" [email protected] wrote:
After quite a bit of searching I observed that if I remove the PublicLab.Editor.js the dropdown works fine. The Editor is somehow blocking the bootstrap dropdown. Same thing happens in the /post page to. @jywarren https://github.com/jywarren Can you have a look at this ?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/1434#issuecomment-304474626, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJzLwzTeR38u7UX8FKQS6I0cBCNWzks5r-IZ0gaJpZM4NmmWx .
Ok I will open an issue there and link to this one. So this can be closed here.
Thanks Ananyo!!!
On May 27, 2017 4:38 PM, "Ananyo Maiti" [email protected] wrote:
Ok I will open an issue there and link to this one. So this can be closed here.
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/publiclab/plots2/issues/1434#issuecomment-304475316, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ5FqAiIAYe5yVcpZ6UVj_yC4wd5cks5r-InDgaJpZM4NmmWx .