Open duncandewhurst opened 2 years ago
I don't think the directive creates the select box, but rather JS code, like this for OCDS. Perhaps the project with the select box has incorrect logic.
Yes, I think the Javascript files linked in the documentation for the directive need to be updated with the correct logic. At least, the examples on that page show a selection box even when there is only one directive.
Edit: For future reference, I created this issue whilst working on the OFDS documentation.
Aha - I might have simply fixed this for OCDS. Feel free to copy that code into this project (with maybe a link in a comment, so it's easy to check if the source has changed).
The select box is useful when there are consecutive directives but useless when there is only one directive.