-
Notifications
You must be signed in to change notification settings - Fork 8
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
Never choose a "group" value in dropdowns #357
Comments
Maybe as an additional comment, the group headers are currently not visually distinguished in my environment. I'm not sure what the reason for that could be. |
Could you show an example? I'm not very diverse in my browser choices for testing, using only Chrome, so this might be the issue? Although I am using nothing else but the standard HTML tag options, I believe. |
Can you check whether the latest version of |
@CasperWA I've tested it and this is what it looks like on my developer machine: $ pip freeze | grep ipywidgets
ipywidgets==7.6.5
ipywidgets-extended==1.1.1 Selecting "General" does not crash the app anymore, but still kind of unexpected that it is even possible to select the headers. I tested it on Firefox and Chrome, same issue in both browsers. |
@CasperWA You should be able to reproduce the issue with the following steps:
git clone https://github.com/aiidalab/aiidalab-docker-stack
cd ./aiidalab-docker-stack/
pip install -r requirements-manage.txt # for docker-compose and click
./manage.py configure --app quantum-espresso==21.10.0b1
./manage.py --develop -v up
qe-app-issue-134_how2reproduce.mp4 |
I can reproduce this on my computer |
Downgrade the |
@unkcpz noticed that on a different deployment, the widget works as expected, however we are not able to figure out what is causing that. Diff of
|
Hmm... this is very peculiar.
The latter is what I'd check first, however, usually if they're not loaded properly it just doesn't show the widget at all. It simply doesn't show up. But it may still be that this is the issue and we're just seeing a different error than normal... It's all quite confusing to be honest 😅 😟 |
I highly doubt that, since we were able to reproduce the issues on Mac OS-X/Linux with both Firefox and Chrome and on top of that, it did work fine in one of the deployments using the same system. So I would say it's almost impossible to be OS or browser-related. |
@CasperWA Would you mind trying to reproduce the issue with the steps shown above (it should only take 5-10mins) and at least confirm that you observe it in your system? Maybe you can check the browser console or so and see if you recognize any of the errors or warnings? |
How is the information provided in the first place? |
In any case. I unfortunately do not have more time to spend on this at this moment.
|
You mean to the widget? Well it's this JS/Python-hybrid schema. |
I was able to follow the code up until roughly here: voila-optimade-client/optimade_client/subwidgets/provider_database.py Lines 336 to 340 in a013cce
and then I get lost. Maybe you can help me understand where exactly the hand-over happens to the JS object? |
Sure, we can have a look at some point - possibly next week. In the mean time, it might be interesting to see whether the issue is with the extension itself or with the implementation in the client. |
|
@CasperWA Based on my last experiment it seems that the issue is with the extension, would you agree? |
Yes indeed. I thought I commented on this, but I must have missed pushing the button. |
@CasperWA Would you mind transferring #369 to https://github.com/CasperWA/ipywidgets-extended? I lack permissions to do so. |
Auxilliary issue now tracked in #369 . |
See issues: aiidalab/aiidalab-qe#135 and aiidalab/aiidalab-qe#134.
Don't allow the application to auto-choose an index of a dropdown that corresponds to a grouping header.
The text was updated successfully, but these errors were encountered: