@syncfusion/ej2-inplace-editor 19.3.43 → 19.3.56
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.
- package/.eslintrc.json +9 -1
- package/CHANGELOG.md +16 -0
- package/dist/ej2-inplace-editor.umd.min.js +2 -2
- package/dist/ej2-inplace-editor.umd.min.js.map +1 -1
- package/dist/es6/ej2-inplace-editor.es2015.js +7 -5
- package/dist/es6/ej2-inplace-editor.es2015.js.map +1 -1
- package/dist/es6/ej2-inplace-editor.es5.js +7 -5
- package/dist/es6/ej2-inplace-editor.es5.js.map +1 -1
- package/dist/global/ej2-inplace-editor.min.js +2 -2
- package/dist/global/ej2-inplace-editor.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +16 -16
- package/src/inplace-editor/base/inplace-editor.d.ts +1 -0
- package/src/inplace-editor/base/inplace-editor.js +7 -5
- package/styles/bootstrap4.css +5 -0
- package/styles/bootstrap5-dark.css +6 -0
- package/styles/bootstrap5.css +6 -0
- package/styles/inplace-editor/bootstrap4.css +5 -0
- package/styles/inplace-editor/bootstrap5-dark.css +6 -0
- package/styles/inplace-editor/bootstrap5.css +6 -0
- package/tslint.json +111 -0
|
@@ -319,6 +319,7 @@ var InPlaceEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
319
319
|
* @private
|
|
320
320
|
*/
|
|
321
321
|
InPlaceEditor.prototype.preRender = function () {
|
|
322
|
+
this.onScrollResizeHandler = this.scrollResizeHandler.bind(this);
|
|
322
323
|
if (isNullOrUndefined(this.model)) {
|
|
323
324
|
this.setProperties({ model: {} }, true);
|
|
324
325
|
}
|
|
@@ -1174,8 +1175,8 @@ var InPlaceEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
1174
1175
|
this.wireEditEvent(this.editableOn);
|
|
1175
1176
|
EventHandler.add(this.editIcon, 'click', this.clickHandler, this);
|
|
1176
1177
|
EventHandler.add(this.element, 'keydown', this.valueKeyDownHandler, this);
|
|
1177
|
-
|
|
1178
|
-
window.addEventListener('resize', this.
|
|
1178
|
+
document.addEventListener('scroll', this.onScrollResizeHandler);
|
|
1179
|
+
window.addEventListener('resize', this.onScrollResizeHandler);
|
|
1179
1180
|
if (Array.prototype.indexOf.call(this.clearComponents, this.type) > -1) {
|
|
1180
1181
|
EventHandler.add(this.element, 'mousedown', this.mouseDownHandler, this);
|
|
1181
1182
|
}
|
|
@@ -1217,8 +1218,8 @@ var InPlaceEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
1217
1218
|
InPlaceEditor.prototype.unWireEvents = function () {
|
|
1218
1219
|
this.unWireEditEvent(this.editableOn);
|
|
1219
1220
|
EventHandler.remove(this.editIcon, 'click', this.clickHandler);
|
|
1220
|
-
|
|
1221
|
-
window.removeEventListener('resize', this.
|
|
1221
|
+
document.removeEventListener('scroll', this.onScrollResizeHandler);
|
|
1222
|
+
window.removeEventListener('resize', this.onScrollResizeHandler);
|
|
1222
1223
|
EventHandler.remove(this.element, 'keydown', this.valueKeyDownHandler);
|
|
1223
1224
|
if (Array.prototype.indexOf.call(this.clearComponents, this.type) > -1) {
|
|
1224
1225
|
EventHandler.remove(this.element, 'mousedown', this.mouseDownHandler);
|
|
@@ -1347,9 +1348,10 @@ var InPlaceEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
1347
1348
|
});
|
|
1348
1349
|
};
|
|
1349
1350
|
InPlaceEditor.prototype.enterKeyDownHandler = function (e) {
|
|
1350
|
-
if (!closest(e.target, '.' + INPUT + ' .e-richtexteditor')) {
|
|
1351
|
+
if (!closest(e.target, '.' + INPUT + ' .e-richtexteditor') && (!e.currentTarget.getElementsByTagName("textarea")[0])) {
|
|
1351
1352
|
if ((e.keyCode === 13 && e.which === 13) && closest(e.target, '.' + INPUT)) {
|
|
1352
1353
|
this.save();
|
|
1354
|
+
this.trigger('submitClick', e);
|
|
1353
1355
|
}
|
|
1354
1356
|
else if (e.keyCode === 27 && e.which === 27) {
|
|
1355
1357
|
this.cancelHandler('cancel');
|