react-crud-mobile 1.3.234 → 1.3.236

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.
@@ -2193,6 +2193,13 @@ function UIElement(props) {
2193
2193
  };
2194
2194
  var Card = function Card(props) {
2195
2195
  var isCard = scope.is('type|layout', 'card');
2196
+ if (scope.isType('list')) {
2197
+ var empty = scope.getPart('empty', null, undefined);
2198
+ var items = scope.getItems();
2199
+ if (empty === false && Utils.isEmpty(items)) {
2200
+ isCard = false;
2201
+ }
2202
+ }
2196
2203
  if (isCard) {
2197
2204
  var _box = _extends({}, getStyle('box', _extends({}, boxStyle.box, {
2198
2205
  alignSelf: 'stretch'
@@ -2241,7 +2248,7 @@ function UIElement(props) {
2241
2248
  def.parent = crud.parent;
2242
2249
  def.search = crud;
2243
2250
  }
2244
- var data = Utils.nvl(args.item, rowItem, {});
2251
+ var data = Utils.nvl(args.item, rowItem, event.data, crud.data, {});
2245
2252
  var d = CrudUtils.create('dialog', _extends({
2246
2253
  parent: crud,
2247
2254
  root: crud,