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.
input-media
1 parent a07a047 commit 7bc848eCopy full SHA for 7bc848e
src/packages/media/media/components/input-media/input-media.element.ts
@@ -188,8 +188,9 @@ export class UmbInputMediaElement extends UmbFormControlMixin<string | undefined
188
});
189
}
190
191
- #onRemove(item: UmbMediaCardItemModel) {
192
- this.#pickerContext.requestRemoveItem(item.unique);
+ async #onRemove(item: UmbMediaCardItemModel) {
+ await this.#pickerContext.requestRemoveItem(item.unique);
193
+ this._cards = this._cards.filter((x) => x.unique !== item.unique);
194
195
196
override render() {
0 commit comments