mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-27 02:30:17 +08:00
fixed canvas select examples issue
This commit is contained in:
parent
84e3581375
commit
b9ecd5355b
@ -256,7 +256,7 @@ const image_input = {
|
||||
toDataURL(example_data, function(data) {
|
||||
if (io.source == "canvas") {
|
||||
io.clear();
|
||||
let ctx = this.context;
|
||||
let ctx = io.context;
|
||||
var img = new Image;
|
||||
let dimension = io.target.find(".canvas_holder canvas").width();
|
||||
img.onload = function(){
|
||||
|
Loading…
Reference in New Issue
Block a user