fix template compiling error
Merge pull request #8015 from andyque/fixButtonIssue

Fix text only button can't be touched issue
Merge pull request #8016 from minggo/template-fix

fix template compiling error