From f6e13ecd0f82765ae70ca1621e08a6cb9342aa5b Mon Sep 17 00:00:00 2001 From: Priyadi Iman Nurcahyo <1102197+priyadi@users.noreply.github.com> Date: Thu, 3 Oct 2024 22:06:37 +0700 Subject: [PATCH] fix(filepond): also clear style attribute just in case --- CHANGELOG.md | 1 + packages/file-filepond/assets/dist/filepond.js | 3 +++ packages/file-filepond/assets/src/filepond.js | 3 +++ 3 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1061e52..0aa0be6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * test: modernization * fix(filepond): clear field class, fix issues with Bootstrap 4 +* fix(filepond): also clear style attribute just in case ## 1.10.2 diff --git a/packages/file-filepond/assets/dist/filepond.js b/packages/file-filepond/assets/dist/filepond.js index 66751bd..df08c3e 100644 --- a/packages/file-filepond/assets/dist/filepond.js +++ b/packages/file-filepond/assets/dist/filepond.js @@ -144,6 +144,9 @@ var _default = /*#__PURE__*/function (_Controller) { // remove input class attribute input.removeAttribute('class'); + // remove input style attribute + input.removeAttribute('style'); + // get the files from the data elements and process them for (var _iterator2 = _createForOfIteratorHelperLoose(this.element.children), _step2; !(_step2 = _iterator2()).done;) { var _child = _step2.value; diff --git a/packages/file-filepond/assets/src/filepond.js b/packages/file-filepond/assets/src/filepond.js index b944ab0..f67703e 100644 --- a/packages/file-filepond/assets/src/filepond.js +++ b/packages/file-filepond/assets/src/filepond.js @@ -149,6 +149,9 @@ export default class extends Controller { // remove input class attribute input.removeAttribute('class') + // remove input style attribute + input.removeAttribute('style') + // get the files from the data elements and process them for (const child of this.element.children) { if (child.tagName !== 'DATA') {