diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5ecb4342..e3cad92b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ default_stages: [ commit, push ] repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-yaml - id: check-ast diff --git a/src/plonemeeting/portal/core/browser/resources/src/components/InstitutionsSelect/InstitutionsSelect.jsx b/src/plonemeeting/portal/core/browser/resources/src/components/InstitutionsSelect/InstitutionsSelect.jsx index 7735d918..7f66f428 100644 --- a/src/plonemeeting/portal/core/browser/resources/src/components/InstitutionsSelect/InstitutionsSelect.jsx +++ b/src/plonemeeting/portal/core/browser/resources/src/components/InstitutionsSelect/InstitutionsSelect.jsx @@ -61,8 +61,12 @@ const InstitutionsSelect = (props) => { * handle click of the institution. * Set selected state so link can be used to navigate to the institution. */ - const handleChange = (option) => { - setSelected(institutions[option.value]); + const handleChange = (option, changeType) => { + if (option) { + setSelected(institutions[option.value]); + } else { + setSelected({}); + } }; return ( @@ -78,6 +82,7 @@ const InstitutionsSelect = (props) => { onChange={handleChange} placeholder={"Sélectionner"} noOptionsMessage={() => Aucun résulat} + isClearable autoBlur /> )} diff --git a/versions.cfg b/versions.cfg index a2fe0021..bc131bd5 100644 --- a/versions.cfg +++ b/versions.cfg @@ -1,42 +1,41 @@ [versions] -# Added by buildout at 2023-09-18 09:59:50.028284 +# Added by buildout at 2023-10-13 14:39:31.154643 collective.cookiecuttr = 2.0.0 createcoverage = 1.5 -imio.pyutils = 0.30 +imio.pyutils = 0.31 ipdb = 0.13.13 iw.debug = 0.3 -jedi = 0.19.0 +jedi = 0.19.1 mockito = 1.4.0 natsort = 6.2.1 parso = 0.8.3 pexpect = 4.8.0 -plone.app.jquery = 1.11.2 plone.formwidget.hcaptcha = 1.0.2 ptyprocess = 0.7.0 robotframework-debuglibrary = 2.3.0 -traitlets = 5.10.0 +traitlets = 5.11.2 # Required by: # ipython==7.34.0 backcall = 0.2.0 # Required by: -# plonemeeting.portal.core==1.6.2.dev0 +# plonemeeting.portal.core==1.6.3.dev0 collective.dexteritytextindexer = 2.4.1 # Required by: -# imio.helpers==0.76.dev0 -# plonemeeting.portal.core==1.6.2.dev0 +# imio.helpers==0.77.dev0 +# plonemeeting.portal.core==1.6.3.dev0 collective.fingerpointing = 1.8.3 # Required by: -# plonemeeting.portal.core==1.6.2.dev0 +# plonemeeting.portal.core==1.6.3.dev0 collective.pwexpiry = 0.15.1 # Required by: -# plonemeeting.portal.core==1.6.2.dev0 -eea.facetednavigation = 15.1 +# plonemeeting.portal.core==1.6.3.dev0 +eea.facetednavigation = 16.0 # Required by: # collective.fingerpointing==1.8.3