checkBox.setLabelAsHtml method is not behaving as expected!

Hi,

when I try to set the checkbox label using this method (checkBox.setLabelAsHtml) and then if I try to access the label using checkBox.getLabel() I am not getting anything back! Is this a bug?

Checkbox checkBox = new Checkbox(todoField.getValue());
checkBox.addValueChangeListener(valueChangeEvent->{
   if(valueChangeEvent.getValue()){
	   checkBox.setLabelAsHtml("<strike>"+checkBox.getLabel()+"</strike>");
   }else{
	   checkBox.setLabel(checkBox.getLabel());
   }

});

Arguably a bug, yes. You should report it to https://github.com/vaadin/vaadin-checkbox-flow/issues

-Olli

Thanks Olli

Created defect for this issue, below is the link;
https://github.com/vaadin/vaadin-checkbox-flow/issues/116