|
@@ -1,7 +1,7 @@
|
|
|
import Base from '../annotation/base';
|
|
|
import { MARGIN_DISTANCE } from '../../constants'
|
|
|
import { getActualPoint, getClickPoint, createSvg, createElement } from '../annotation/utils';
|
|
|
-import { onClickOutside } from '../ui_utils'
|
|
|
+import { onClickOutsideUp } from '../ui_utils'
|
|
|
|
|
|
export default class ComboBox extends Base {
|
|
|
|
|
@@ -497,7 +497,7 @@ export default class ComboBox extends Base {
|
|
|
if (!this.hidden && document.getElementsByClassName('right-panel')[0].className.indexOf('closed') !== -1) {
|
|
|
document.getElementById('propertyPanelButton').click()
|
|
|
}
|
|
|
- onClickOutside([this.annotationContainer, this.outerLine, this.deletetButton, document.getElementById('propertyPanelButton'), document.getElementsByClassName('right-panel')[0]], this.handleOutside.bind(this))
|
|
|
+ onClickOutsideUp([this.annotationContainer, this.outerLine, this.deletetButton, document.getElementById('propertyPanelButton'), document.getElementsByClassName('right-panel')[0]], this.handleOutside.bind(this))
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -891,8 +891,8 @@ export default class ComboBox extends Base {
|
|
|
items.splice(fromIndex, 2, items[fromIndex + 1], items[fromIndex])
|
|
|
}
|
|
|
props.moveOption.item = {
|
|
|
- value: items[toIndex].Value,
|
|
|
- string: items[toIndex].String
|
|
|
+ Value: items[toIndex].Value,
|
|
|
+ String: items[toIndex].String
|
|
|
}
|
|
|
|
|
|
const optionElement = this.selectElement.options[fromIndex]
|