mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-02 19:27:57 +08:00
Empty description and cursor will appear on the Upload button in the UploadMany dialog #484
This commit is contained in:
parent
9ea28b9915
commit
4ad103f228
@ -28,6 +28,7 @@ import com.google.gwt.user.client.ui.FlowPanel;
|
||||
import com.google.gwt.user.client.ui.Focusable;
|
||||
import com.google.gwt.user.client.ui.HasEnabled;
|
||||
import com.google.gwt.user.client.ui.Widget;
|
||||
import com.vaadin.client.BrowserInfo;
|
||||
import com.vaadin.client.StyleConstants;
|
||||
import com.vaadin.client.WidgetUtil;
|
||||
import com.vaadin.client.ui.VButton;
|
||||
@ -76,7 +77,9 @@ public class CubaFileUploadWidget extends FlowPanel implements Focusable, HasEna
|
||||
|
||||
Element inputElement = Document.get().createFileInputElement();
|
||||
inputElement.setAttribute("name", "files[]");
|
||||
inputElement.setAttribute("title", " ");
|
||||
if (!BrowserInfo.get().isIE() && !BrowserInfo.get().isEdge()) {
|
||||
inputElement.setAttribute("title", " ");
|
||||
}
|
||||
listenToFocusEvents(inputElement);
|
||||
|
||||
getElement().appendChild(inputElement);
|
||||
|
@ -64,6 +64,11 @@
|
||||
height: 100%;
|
||||
|
||||
@include box-defaults;
|
||||
|
||||
// hide caret of input
|
||||
.v-ie & {
|
||||
-ms-user-select: none;
|
||||
}
|
||||
}
|
||||
|
||||
.#{$primary-stylename}.v-disabled input {
|
||||
|
Loading…
Reference in New Issue
Block a user