add support for showMaxLength