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 ecad5b8 commit 1f36af1Copy full SHA for 1f36af1
assets/controllers/batch.js
@@ -134,11 +134,11 @@ export default class extends Controller {
134
}
135
136
#updateIdentifierHolderInputs(identifierHolder, identifierMap) {
137
- if (identifierMap.size === 0 && this.#previousIdentifierMap) {
138
- for (const identifierName of this.#previousIdentifierMap.keys()) {
139
- const input = identifierHolder.querySelector(`input[name="${identifierName}[]"]`);
+ for (const identifierName of this.#previousIdentifierMap?.keys() || []) {
+ if (!identifierMap.has(identifierName)) {
+ const inputs = identifierHolder.querySelectorAll(`input[name="${identifierName}[]"]`);
140
141
- if (input) {
+ for (const input of inputs) {
142
input.remove();
143
144
0 commit comments