From abb0fe8caf09aa154119edb5ad7be424005d44ba Mon Sep 17 00:00:00 2001
From: Safae Merigh <safae_merigh@brown.edu>
Date: Mon, 25 May 2020 15:25:03 +0000
Subject: Modifications to OrderedListView (class from RichTextSchema)

---
 src/client/views/nodes/formattedText/OrderedListView.tsx | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 src/client/views/nodes/formattedText/OrderedListView.tsx

(limited to 'src/client/views/nodes/formattedText/OrderedListView.tsx')

diff --git a/src/client/views/nodes/formattedText/OrderedListView.tsx b/src/client/views/nodes/formattedText/OrderedListView.tsx
new file mode 100644
index 000000000..c3595e59b
--- /dev/null
+++ b/src/client/views/nodes/formattedText/OrderedListView.tsx
@@ -0,0 +1,8 @@
+export class OrderedListView {
+
+    update(node: any) {
+        // if attr's of an ordered_list (e.g., bulletStyle) change, 
+        // return false forces the dom node to be recreated which is necessary for the bullet labels to update
+        return false; 
+    }
+}
\ No newline at end of file
-- 
cgit v1.2.3-70-g09d2

