Skip to content

Problem: There may be a breaking JQuery change affecting collapse/expansion of user-interface components #198

@ross-spencer

Description

@ross-spencer

SCOPE uses a control that can expand/collapse as requested. It appears in the content menu, but also for the expansion of preservation metadata.

image

Trying to expand the component will result in a JQuery error that can be seen in the developer tools.

Googling the issue returned that there may be a breaking change in JQuery 3.5 which is affecting this: https://stackoverflow.com/a/61177704

This seemed a good enough hypothesis to begin and so we can confirm usage of 3.5 here.

Changing this line to 3.4.1 and then (for Docker):

  • sudo docker-compose exec scope npm install
  • sudo docker-compose exec scope npm rebuild

And then refreshing my browser I get a successful outcome:

image

So that might be one way forward, i.e. a decent workaround. The solution may lie elsewhere though.

Thanks Radda for the advice on building NPM and helping demo this a bit quicker .

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions