jsf.js_next_gen 4.0.3-beta.2 → 4.0.3-beta.3

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.
@@ -8368,10 +8368,12 @@ class XhrRequest extends AsyncRunnable_1.AsyncRunnable {
8368
8368
  AjaxImpl_1.Implementation.sendError(errorData, eventHandler);
8369
8369
  }
8370
8370
  appendIssuingItem(formData) {
8371
+ var _a, _b;
8371
8372
  const issuingItemId = this.internalContext.getIf(Const_1.CTX_PARAM_SRC_CTL_ID).value;
8372
8373
  //to avoid sideffects with buttons we only can append the issuing item if no behavior event is set
8373
8374
  //MYFACES-4679!
8374
- const isBehaviorEvent = !!formData.getIf((0, Const_1.$nsp)(Const_1.P_BEHAVIOR_EVENT)).value;
8375
+ const eventType = (_b = (_a = formData.getIf((0, Const_1.$nsp)(Const_1.P_BEHAVIOR_EVENT)).value) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : null;
8376
+ const isBehaviorEvent = (!!eventType) && eventType != 'click';
8375
8377
  //not encoded
8376
8378
  if (issuingItemId && formData.getIf(issuingItemId).isAbsent() && !isBehaviorEvent) {
8377
8379
  const issuingItem = mona_dish_1.DQ.byId(issuingItemId);
@@ -8386,9 +8388,7 @@ class XhrRequest extends AsyncRunnable_1.AsyncRunnable {
8386
8388
  else if ((type == XhrRequest.TYPE_CHECKBOX || type == XhrRequest.TYPE_RADIO)) {
8387
8389
  arr.assign(issuingItemId).value = itemValue.orElse(true).value;
8388
8390
  }
8389
- else if (itemValue.isPresent() && (type == XhrRequest.TYPE_BUTTON ||
8390
- type == XhrRequest.TYPE_SUBMIT ||
8391
- type == XhrRequest.TYPE_LINK)) {
8391
+ else if (itemValue.isPresent()) {
8392
8392
  arr.assign(issuingItemId).value = itemValue.value;
8393
8393
  }
8394
8394
  formData.shallowMerge(arr, true, true);
@@ -8398,9 +8398,6 @@ class XhrRequest extends AsyncRunnable_1.AsyncRunnable {
8398
8398
  exports.XhrRequest = XhrRequest;
8399
8399
  XhrRequest.TYPE_CHECKBOX = "checkbox";
8400
8400
  XhrRequest.TYPE_RADIO = "radio";
8401
- XhrRequest.TYPE_BUTTON = "button";
8402
- XhrRequest.TYPE_SUBMIT = "submit";
8403
- XhrRequest.TYPE_LINK = "a";
8404
8401
 
8405
8402
 
8406
8403
  /***/ }),