fix setMaxLength issue of EditBox-mac
Merge pull request #8614 from andyque/fixEditBoxMaxLengthOnMac

fix setMaxLength issue of EditBox-mac