@searpent/react-image-annotate 2.0.69 → 2.0.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1182,6 +1182,7 @@ export default (function (state, action) {
1182
1182
  value = action.value,
1183
1183
  _imageIndex = action.imageIndex,
1184
1184
  _groupId2 = action.groupId;
1185
+ console.log(action);
1185
1186
 
1186
1187
  if (isNaN(_imageIndex)) {
1187
1188
  var _state$albumMetadata;
@@ -37,6 +37,10 @@ var MetadataItem = function MetadataItem(_ref2) {
37
37
  var _e$target = e.target,
38
38
  name = _e$target.name,
39
39
  value = _e$target.value;
40
+ console.log("onChange", {
41
+ name: name,
42
+ value: value
43
+ });
40
44
  onChange({
41
45
  name: name,
42
46
  value: value,
@@ -76,7 +80,8 @@ var MetadataItem = function MetadataItem(_ref2) {
76
80
  if (opt.value && opt.label) {
77
81
  return React.createElement("option", {
78
82
  key: opt.value,
79
- value: opt.value
83
+ value: opt.value,
84
+ selected: opt.value === value
80
85
  }, opt.label);
81
86
  }
82
87
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searpent/react-image-annotate",
3
- "version": "2.0.69",
3
+ "version": "2.0.70",
4
4
  "dependencies": {
5
5
  "@editorjs/editorjs": "^2.25.0",
6
6
  "@editorjs/paragraph": "^2.8.0",