mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-21 02:19:59 +08:00
fixed canvas select examples issue
This commit is contained in:
parent
d24988454e
commit
7f1af90936
@ -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