We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbd77c2 commit e4bc5ebCopy full SHA for e4bc5eb
src/LiveComponent/assets/dist/live_controller.js
@@ -2832,8 +2832,7 @@ class LiveControllerDefault extends Controller {
2832
if (!(element instanceof HTMLElement)) {
2833
throw new Error('Could not update model for non HTMLElement');
2834
}
2835
- if (element instanceof HTMLInputElement
2836
- && element.type === 'file') {
+ if (element instanceof HTMLInputElement && element.type === 'file') {
2837
const key = (_a = element.dataset.model) !== null && _a !== void 0 ? _a : element.name;
2838
if ((_b = element.files) === null || _b === void 0 ? void 0 : _b.length) {
2839
this.pendingFiles[key] = element.files;
0 commit comments