client/lanes/components/grid/PopOverMixin.cjsx in lanes-0.6.1 vs client/lanes/components/grid/PopOverMixin.cjsx in lanes-0.7.0
- old
+ new
@@ -1,7 +1,11 @@
##= require ./EditingMixin
-
+BAD_PROPS = [
+ 'position', 'model', 'index', 'syncImmediatly', 'query',
+ 'onCancel', 'onSave', 'cellStyles', 'editors', 'rowIndex',
+ 'rowHeight', 'allowDelete'
+]
Lanes.Components.Grid.PopoverMixin = {
mixins: [
Lanes.Components.Grid.EditingMixin
]
@@ -22,9 +26,11 @@
else
props.placement = 'right'
props.positionLeft = position.left
props.arrowOffsetTop = Math.min(position.top + 20, (props.height - 75))
props.positionTop = Math.max(5, position.top - props.arrowOffsetTop + (position.rowHeight / 2))
+
+ props = _.omit(props, BAD_PROPS)
<div className="editor po">
<BS.Popover
id="editing-form"
{...props}