Empty description and cursor will appear on the Upload button in the UploadMany dialog #484

This commit is contained in:
Roman Pinyazhin 2018-06-09 16:55:42 +04:00
parent 9ea28b9915
commit 4ad103f228
2 changed files with 9 additions and 1 deletions

View File

@ -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);

View File

@ -64,6 +64,11 @@
height: 100%;
@include box-defaults;
// hide caret of input
.v-ie & {
-ms-user-select: none;
}
}
.#{$primary-stylename}.v-disabled input {