Open codefalse opened 5 years ago
hey @codefalse thanks for raising this. While we define and attach the root source on line 102, that doesn't apply to the image type, which definitely looks like we aren't checking if the option exists outside of it being an data attribute. We'll work this fix into the next milestone release as it should be pretty straight forward (also needs attention from line 615 as well).
As i'm not sure when that roll out might be, our recommendation for getting content_source
option to work in an Image or Gallery type would be to use the data-modaal-content-source
.
This's my options
but the code in line 685, to check data-modaal-content-source, href, src, or error.
so, My configuration(options.content_source) is useless. We should give priority to self.scope.source,