From a4cea483c001a8dc546f27ee22362fe5f08d37b9 Mon Sep 17 00:00:00 2001
From: Antoine <antoine.roy@tetras-libre.fr>
Date: Mon, 18 Dec 2023 10:44:15 +0100
Subject: [PATCH] Created a .nvmrc file and update AnnotationCreation.js to
 update the slider as entended.

---
 .nvmrc                    | 1 +
 README.md                 | 1 +
 src/AnnotationCreation.js | 2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)
 create mode 100644 .nvmrc

diff --git a/.nvmrc b/.nvmrc
new file mode 100644
index 0000000..1b497a7
--- /dev/null
+++ b/.nvmrc
@@ -0,0 +1 @@
+16.20.2
\ No newline at end of file
diff --git a/README.md b/README.md
index 022a9d0..dde444d 100644
--- a/README.md
+++ b/README.md
@@ -17,6 +17,7 @@ Persisting annotations requires implementing an a IIIF annotation server. Severa
 
 `mirador-annotations` requires an instance of Mirador 3. See the [Mirador wiki](https://github.com/ProjectMirador/mirador/wiki) for examples of embedding Mirador within an application. See the [live demo's index.js](https://github.com/ProjectMirador/mirador-annotations/blob/master/demo/src/index.js) for an example of importing the `mirador-annotations` plugin and configuring the adapter.
 
+**You must use node v16.20.2**. You can `run nvm use` at the racine of the project to set your node version to 16.20.2.
 ## Contribute
 Mirador's development, design, and maintenance is driven by community needs and ongoing feedback and discussion. Join us at our regularly scheduled community calls, on [IIIF slack #mirador](http://bit.ly/iiif-slack), or the [mirador-tech](https://groups.google.com/forum/#!forum/mirador-tech) and [iiif-discuss](https://groups.google.com/forum/#!forum/iiif-discuss) mailing lists. To suggest features, report bugs, and clarify usage, please submit a GitHub issue.
 
diff --git a/src/AnnotationCreation.js b/src/AnnotationCreation.js
index 4537257..e080049 100644
--- a/src/AnnotationCreation.js
+++ b/src/AnnotationCreation.js
@@ -204,11 +204,11 @@ class AnnotationCreation extends Component {
   handleChangeTime = (event, newValueTime) => {
     const timeStart = newValueTime[0];
     const timeEnd = newValueTime[1];
-    console.log(newValueTime);
     this.updateTstart(timeStart);
     this.updateTend(timeEnd);
     this.seekToTstart();
     this.seekToTend();
+    this.setState({ valueTime: newValueTime });
   };
 
   /** update annotation start time */
-- 
GitLab