Value Error in annotation.js
reply4manish opened this issue · 6 comments
annotation.js is throwing value error, probably some issue with templates file
Unable to annotate any lable,
Why is the select tag on line 105 in annotator/templates/video.html , not having any options.
2f4217c annotator/templates/video.html (Jeanine Harb 2018-01-09 22:00:06 +0100 105)
Error at this line:
frame.state = document.querySelector('#states option:checked').value; in annotation.js
Uncaught TypeError: Cannot read property 'value' of null
at Annotation.updateKeyframe (annotation.js:147)
at Player.addAnnotationAtCurrentTimeFromRect (player.js:445)
at PlayerView.$.on (player.js:177)
at PlayerView.dispatch (jquery.js:5110)
at PlayerView.elemData.handle (jquery.js:4918)
at Object.trigger (jquery.js:8031)
at jQuery.fn.init.triggerHandler (jquery.js:8105)
at CreationRect.$.on (player.js:152)
at CreationRect.dispatch (jquery.js:5110)
at CreationRect.elemData.handle (jquery.js:4918)
@jeanineharb :)
Is your dropdown list for states populated with data?
This error seems to be caused by an empty selection for the annotation state.
drop down list for states, don't seem to be populated with any data.
Perhaps with the new state stuff we should have a default state? Or allow no states?
Yes, I will upload a fix soon.
Meanwhile, @reply4manish, if you are using the test data provided by the project, I suggest that you run the ./scripts/seed script again as described in the instructions.
Pull request #137 fixes this issue.