File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
gwt-material/src/main/java/gwt/material/design/client/ui Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1919 */
2020package gwt .material .design .client .ui ;
2121
22+ import com .google .gwt .dom .client .Element ;
2223import com .google .gwt .event .shared .HandlerRegistration ;
2324import com .google .gwt .user .client .ui .*;
2425import gwt .material .design .client .base .HasId ;
@@ -317,12 +318,16 @@ public void setHtml(String html) {
317318 htmlAttachHandler = null ;
318319 }
319320
320- JsMaterialElement element = JsMaterialElement . $ ( "#" + widget .getElement (). getAttribute ( "data-tooltip-id" ) );
321+ Element element = widget .getElement ();
321322 if (widget .isAttached ()) {
322- element .find ("span" ).html (html != null ? html : "" );
323+ JsMaterialElement .$ ("#" + element .getAttribute ("data-tooltip-id" ))
324+ .find ("span" )
325+ .html (html != null ? html : "" );
323326 } else {
324327 htmlAttachHandler = widget .addAttachHandler (attachEvent -> {
325- element .find ("span" ).html (html != null ? html : "" );
328+ JsMaterialElement .$ ("#" + element .getAttribute ("data-tooltip-id" ))
329+ .find ("span" )
330+ .html (html != null ? html : "" );
326331 });
327332 }
328333 }
You can’t perform that action at this time.
0 commit comments