bs-custom-file-input icon indicating copy to clipboard operation
bs-custom-file-input copied to clipboard

Is it a problem if we call bsCustomFileInput.init() again after an ajaxSuccess event?

Open drauch opened this issue 4 years ago • 2 comments

Is it a problem if we call bsCustomFileInput.init() again after an ajaxSuccess event? Does it hurt existing custom file inputs, does it "double the trouble" so to say?

drauch avatar May 12 '20 06:05 drauch

image-2020-11-26-09-53-30-068

Yes, I believe it can cause duplication of the label text.

It would be nice if we could pass a DOM element to the plugin to only target a specific element or parent.

philwolstenholme avatar Dec 11 '20 17:12 philwolstenholme

It would be nice if we could pass a DOM element to the plugin to only target a specific element or parent.

Yes, that would be splendid!

drauch avatar Dec 11 '20 19:12 drauch