jsf.js_next_gen 4.0.3-beta.1 → 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,9 +8368,14 @@ 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;
8373
+ //to avoid sideffects with buttons we only can append the issuing item if no behavior event is set
8374
+ //MYFACES-4679!
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';
8372
8377
  //not encoded
8373
- if (issuingItemId && formData.getIf(issuingItemId).isAbsent()) {
8378
+ if (issuingItemId && formData.getIf(issuingItemId).isAbsent() && !isBehaviorEvent) {
8374
8379
  const issuingItem = mona_dish_1.DQ.byId(issuingItemId);
8375
8380
  const itemValue = issuingItem.inputValue;
8376
8381
  const arr = new ExtDomQuery_1.ExtConfig({});