@@ -125,9 +125,6 @@ const snapShotFunc = () => {
125
125
126
126
const handleAnnoChange = ( event ) => {
127
127
const { value } = event . target ;
128
-
129
- console . log ( "ID " , event . target . id )
130
- console . log ( event . target ) ;
131
128
if ( value === '' ) {
132
129
document . getElementById ( "btn" + event . target . id ) . style . background = '#3ec1ac' ;
133
130
document . getElementById ( "btn" + event . target . id ) . id = 'btn' + event . target . id ;
@@ -136,27 +133,6 @@ const snapShotFunc = () => {
136
133
document . getElementById ( "btn" + event . target . id ) . id = 'btn' + event . target . id ;
137
134
}
138
135
}
139
- /*
140
- const annotateOpen = (id) => {
141
- let annotateTextArea = document.getElementById("txt" + id);
142
- console.log(annotateTextArea);
143
- console.log('*********')
144
- console.log("USING ID " , id);
145
- console.log("TEXT ID HERE: ", "txt" + id);
146
-
147
- annotateTextArea.addEventListener("change", function(event) {
148
- let annotateText = (this as HTMLInputElement).value
149
- console.log(annotateText)
150
- if(annotateText === '') {
151
- document.getElementById("btn" + id).style.background = '#cc99ff';
152
- document.getElementById("btn" + id).id = 'btn' + id;
153
- } else {
154
- document.getElementById("btn" + id).id = 'btn' + id;
155
- document.getElementById("btn" + id).style.background = '#3ec1ac';
156
- }
157
- });
158
- }
159
- */
160
136
// Caret End
161
137
162
138
// combine all styles so that higher priority style specifications overrule lower priority style specifications
@@ -175,21 +151,6 @@ const snapShotFunc = () => {
175
151
combineStyles ( combineStyles ( defaultNestableStyle , HTMLType . style ) , style ) ,
176
152
interactiveStyle
177
153
) ;
178
- //<textarea className='annotate-textarea' id={state.canvasFocus.childId}></textarea>
179
- //<button className='annotate-button-empty' onClick={() => annotateOpen(state.canvasFocus.childId)} id={state.canvasFocus.childId + 1000}>DIRECT CHILD HTML NESTABLE HERE</button>
180
-
181
- /*
182
- <button className='annotate-button-empty' id={"btn" + childId} onClick={() => handleAnnoOpen(childId)}>DIRECT CHILD HTML NESTABLE HERE</button>
183
- <Modal
184
- open={open}
185
- onClose={handleClose}
186
- keepMounted={true}
187
- >
188
- <textarea className='annotate-textarea' id={state.canvasFocus.childId} onChange={handleAnnoChange}></textarea>
189
- </Modal>
190
- */
191
-
192
-
193
154
drag ( drop ( ref ) ) ;
194
155
return (
195
156
< div onClick = { onClickHandler } style = { combinedStyle } ref = { ref } >
@@ -203,9 +164,7 @@ const snapShotFunc = () => {
203
164
name = { name }
204
165
style = { style }
205
166
>
206
-
207
- </ Annotation >
208
-
167
+ </ Annotation >
209
168
{ /* Caret end */ }
210
169
</ div >
211
170
) ;
0 commit comments