An irrigation resistant bone repair composition including a biocompatible or bioactive bone repair material comprising borate, and poly(glycerol sebacate), wherein the composition, upon implantation into a surgical site, maintains position and does not displace upon irrigation of the surgical site, is described. Also, methods for treating a bone having a bone gap or a bone defect with the composition as well as kits that include the composition, are provided.