Why was Kylian Mbappe’s goal for France in Nations League final vs Spain allowed to stand?

Why was Kylian Mbappe’s goal for France in Nations League final vs Spain allowed to stand?

At first look, the forward appeared offside as he sprinted past the Spain back line before scoring past Unai Simon