nf-core / tools

Python package with helper tools for the nf-core community.
https://nf-co.re
MIT License
244 stars 192 forks source link

Pipeline schema build help modal loses text area focus #3312

Open swingingsimian opened 1 week ago

swingingsimian commented 1 week ago

Description of the bug

Hi

I am using thd pipeline schema builder tool as part of the Hello Nextflow tutorial and have found a bug related to help text input. When clicking on the help text icon, a modal appears with the focus on the input text area. It is possible to enter text, but any click within the modal removes that focus and it cannot be re-estalbished without closing/saving and re-opening the modal.

Image

Command used and terminal output

✗ nf-core pipelines schema build        

                                          ,--./,-.
          ___     __   __   __   ___     /,-._.--~\ 
    |\ | |__  __ /  ` /  \ |__) |__         }  {
    | \| |       \__, \__/ |  \ |___     \`-._,-`-,
                                          `._,._,'

    nf-core/tools version 3.0.2 - https://nf-co.re

INFO     [✓] Default parameters match schema validation                                                                                                                                         
INFO     [✓] Pipeline schema looks valid (found 21 params)                                                                                                                                      
INFO     Writing schema with 21 params: 'nextflow_schema.json'                                                                                                                                  
🚀  Launch web builder for customisation and editing? [y/n]: y
INFO     Opening URL: https://nf-co.re/pipeline_schema_builder?id=1733150369_bff73eed5f3f                                                                                                       
INFO     Waiting for form to be completed in the browser. Remember to click Finished when you're done.

System information

I'm not sure this is relevant as it's to do with the client hosted at this site: https://oldsite.nf-co.re/pipeline_schema_builder

Nextflow version (eg. 23.04.0) nf-core, version 3.0.2 (installed as latest version from conda just last week). Python version 3.12.7 Chrome Version 131.0.6778.86 (Official Build) (arm64)

swingingsimian commented 1 week ago

Also, possibly related. On saving the help text and returning to the main page, it seems impossible to gain focus on the Description field. Refreshing the page seems to clear this behaviour.